Omissible Parentheses...

Michiel Helvensteijn m.helvensteijn.remove at gmail.com
Sun Aug 2 07:25:19 PDT 2009


KennyTM~ wrote:

>> Interesting.  I don't think I've seen this angle yet.
>> 
>> Could you provide code examples, please?
> 
> "<p>yes?</p>".replace("<", "&lt;").replace(">", "&gt;");

Sure, but they have parameters, so they require parentheses anyway. Robert
Jacques was talking about omissible parentheses for function chaining. That
would require parameter-less functions.

-- 
Michiel Helvensteijn




More information about the Digitalmars-d mailing list