DMD 0.148 - scope guard

Cris central_p at hotmail.com
Sun Feb 26 02:39:27 PST 2006


Yes I agree with Kyle but not to overuse simple keywords, what about 
something like "onSuccess:", "onFailure:", etc...

To me all "_" look ugly. Perhaps the author could ask the community for 
suggestions when naming new features?
Or perhaps just "onScopeSuccess", "onScopeFailure"...

Kyle Furlong wrote:
> John Reimer wrote:
>> Walter Bright wrote:
>>> Scope guards are a novel feature no other language has. They're based 
>>> on Andrei Alexandrescu's scope guard macros, which have led to 
>>> considerable interest in the idea. Check out the article 
>>> www.digitalmars.com/d/exception-safe.html
>>>
>>>
>>
>>
>> Nice feature, but rather ugly to look at; although, I'm not sure how 
>> something like that could be made to look pretty.  Nonetheless the 
>> scope guard looks like something I should read up on.
>>
>> Thanks for another good release.
>>
>> -JJR
> 
> I thought the same, perhaps the "scope" portion is understood? So that 
> the keywords become: onsuccess, onfailure, ...?



More information about the Digitalmars-d mailing list