String mixin syntax sugar

Jacob Carlborg doob at me.com
Tue Mar 20 14:28:25 PDT 2012


On 2012-03-20 19:25, Mantis wrote:
> Hello,
>
> since people discussed a lot about user-defined attributes recently,
> I've been thinking about a way to implement it with a string mixins. The
> problem with them is their syntax - it's far from what we want to use in
> everyday job. I understand, they should be easily distinguished at use
> site, but perhaps this may be accomplished in other ways as well. My
> idea is to translate this kind of statements:
>
> # identifier statement
>
> into this:
>
> mixin( identifier( q{ statement } ) );


I don't like it. I want real user defined attributes.


-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list