if(;){} opinion

Lionello Lunesu lio at remove.lunesu.com
Mon Feb 27 05:34:45 PST 2006


> with( Regexp m = std.regexp.search(...) )
> {
>   ...
> }
> else { ... }

I like that "else"! Sure makes that code nicer than the following 
(equivalent) code:

# Regexp m = std.regexp.search(...);
# if (m) {
#   with(m) {
#     ...
#   }
# }
# else { ... }

L. 





More information about the Digitalmars-d mailing list