if(;){} opinion

Derek Parnell derek at psych.ward
Tue Feb 28 03:59:56 PST 2006


On Tue, 28 Feb 2006 21:04:49 +1100, Walter Bright  
<newshound at digitalmars.com> wrote:

>
> "clayasaurus" <clayasaurus at gmail.com> wrote in message
> news:dtvmkf$2e1a$1 at digitaldaemon.com...
>> I'll vote against it because I don't understand the value of
>>
>> if (m; search("abcdef", "BcdasdfD"))
>>
>> over
>>
>> if (Regexp m = search("abcdef", "BcdasdfD") ) .
>>
>> Maybe someone can enlighten me?
>
> 1) m is implicitly typed
> 2) looks like the foreach
> 3) more concise

   4) ugly (looks like C)
   5) Walter's idea


-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d mailing list