if(;){} opinion

BCS BCS_member at pathlink.com
Mon Feb 27 15:10:17 PST 2006


I like it

How about for the Synchronize statement. To be fair I think something like that 
has also bean suggested with Foreach.


David Medlock wrote:
> 
> 
> I would say extend the with(...) construct to silently fail( and take an 
> else clause ) if the object of the with statement is null.
> 
> with( Regexp m = std.regexp.search(...) )
> {
>   ...
> }
> else { ... }
> 
> Of course foreach is still preferred for multi returned values.
> 
> -DavidM
> 



More information about the Digitalmars-d mailing list