UFCS idea
Alex_Dovhal
alex_dovhal at yahoo.com
Thu Jun 9 01:28:38 PDT 2011
"Jonathan M Davis" <jmdavisProg at gmx.com> wote:
> Regardless, I see little point in using it for UFCS. If we want to
> specifically mark parameters for it, I think that the suggestion of using
> "this" makes a lot more sense. You wouldn't even have to change the
> grammar
> (unlike if you used @). You'd just change the semantic phase to treat
> "this"
> specially as a function parameter and not freak out about it being a
> keyword.
> Using @ would be a much bigger language change and for no gain whatsoever
> as
> far as I can see.
>
> - Jonathan M Davis
Thanks, Dmitry Olshansky has already explained why using "this" is fully
suitable. One thing I personally dislike in UFCS is that it's impossible to
visually separate it from member call syntax, only by context. But this is
only personal taste. Sorry for noise.
More information about the Digitalmars-d
mailing list