byKey and byValue: properties or methods?
Alex Rønne Petersen
xtzgzorex at gmail.com
Wed Jan 18 13:38:38 PST 2012
On 18-01-2012 21:26, Nick Sabalausky wrote:
> "Jacob Carlborg"<doob at me.com> wrote in message
> news:jf6e7a$1929$1 at digitalmars.com...
>>
>> method:
>> no parameters - parentheses are optional
>
> FWIW, I always do a double-take when I see code like:
>
> functionName;
> //or
> object.functionName;
>
> It sets off all mannar of "no-effect expression!" bells and buzzers in my
> head every time I look at it, which I then have to silence.
>
>
>
Indeed! It's so unnatural in a C-based language. See, if the semicolon
wasn't there, it would be a different story (see most ML-style
functional languages).
--
- Alex
More information about the Digitalmars-d
mailing list