map kinds of Ranges
Mehrdad
wfunction at hotmail.com
Mon May 23 20:18:17 PDT 2011
On 5/23/2011 7:33 PM, Jonathan M Davis wrote:
> Setting aside this particular issue with purity, I would very much
> like to see conditional purity implemented (along with conditional
> nothrow, conditional @safe, etc.),
I'm liking that people are liking the idea. :-)
http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=127569
<http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=127569>
As much as I like the idea, though, I think a /lot/ of these would be
fixed simply with the ability to put metadata/attributes/annotations,
instead of introducing new syntax like conditionally_pure, etc. That
way, @pure, @nothrow, @safe, etc. could just become attributes that
could take in arguments, and it would also simply the syntax of the
language a bit, reducing the number of keywords. It would also add one
major feature D lacks right now (metadata) that is really helpful in a
lot of situations.
Thoughts on this?
More information about the Digitalmars-d
mailing list