YAPP - reminder

Chad J chadjoan at __spam.is.bad__gmail.com
Sat Aug 8 11:37:18 PDT 2009


aarti_pl wrote:
> 
> Currently my choice would be something like proposal in DIP6
> (attributes). Using '@' at the beginning of attributes could be also
> used in another place: in imports it could be used to escape keywords,
> so that following would be possible:
> -- 
> import std. at traits; //then we could remove underscores from __traits
> import d. at for.masses;
> -- 
> It's most general way of annotating source code with special compiler
> understandable meanings. Looking at result of poll & also seeing many NG
> posts I believe that most of D community prefers generality over
> one-time hackish solutions. And that's something to think about it... :-)
> 

for ( int i; i < @args.length; i++ )
	doSomething( @args[i] );

auto t = @traits(getMember,s,"foo");

Yeah, this would be cool.  So much easier on the eyes.

> 
> It seems that almost no one likes "ugly" functions with underscores and
> messing operator names with property names. I am not so surprised about
> underscores at all: it was common practice in C++, but it's not so
> common in other modern languages. But then why in D we have so many of
> them although no one really likes it (__traits, foreach_reverse,
> _argptr, _arguments)?
> 

Maybe we should make another poll? :)

> 
> And finally: why polls are not integral part of digitalmars web page? It
> took me only one hour to set up this poll...
> 
> 
> BR
> Marcin Kuszczak
> (aarti_pl)



More information about the Digitalmars-d mailing list