Re: Anonymous functions bug?
ArtemGr <[email protected]> Mon, 7 Mar 2005 09:24:48 +0000 (UTC)
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
> We have to decide: > if we allow return e; in a void method This is the usual use case in c++. It's more convenient then to write a separate return every time. if( condition ) return buf.append( aaa ).append( bbb ); buf.append( ccc = ... ); I wish it would be allowed... > if we allow void foo(StringBuffer buf, String s) = buf.append(s); I think it's a contradiction to allow void foo(StringBuffer buf, String s) = buf.append(s); and not to allow return buf.append(s); ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click