On Friday, 8 February 2013 at 00:33:47 UTC, Steven Schveighoffer
wrote:
On Thu, 07 Feb 2013 17:25:16 -0500, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> wrote:
On 2/7/13 4:12 PM, Steven Schveighoffer wrote:
On Thu, 07 Feb 2013 15:25:57 -0500, Jonathan M Davis
<jmdavisp...@gmx.com> wrote:
struct S
{
@property int i;
}
struct S
{
mixin(boilerplateProperty("i"));
}
I don't see this as a difficult problem to solve.
-Steve
I like that, too, with the note that various syntax
highlighters etc. won't be able to see much about that entity.
My syntax highlighter highlights string and writeln, even
though they aren't language builtins. If we establish a
standard mixin template, certainly editors can be made to
highlight such a mixin, along with providing the expected code
completion.
Most does it when using the q string syntax.