It's amazing how many times I read "it's just syntactical sugar" as if this
should put an end to the argument.

C is syntactical sugar around assembly language. Most of the time, languages
are nothing but syntactical sugar over older languages.

The debate is a bit more complex than that. The question you should ask
yourself is: "Is this syntactical sugar making it easier to write code in
that language?".

I think that most of syntactical sugar additions tend to add complexity
instead of decreasing it, but in the case of properties, I think the gains
outweigh the drawbacks (can't really think of any, to be honest).

Anyway, I don't want this to drop back down to nitpicking over what is
complex versus what is simple, and at the end of the day, what features
you'd like to see added to Java is very subjective. However, I do hope that
we stop hearing "it's just syntactical sugar", because this doesn't really
help moving the discussion forward.

-- 
Cédric




On Fri, Sep 17, 2010 at 8:42 PM, Miroslav Pokorny <
[email protected]> wrote:

> Properties are in the end syntactical sugar, they dont add any real
> behaviour differences on top of a getter/setter. Why does it even matter,
> when with most modern IDEs, writing there are minimal keystrokes counts to
> type in a getter or setter. If one does the right and makes all their
> objects immutable, setters are gone. If builder setters are named property()
> and getters the same the keystrokes are almost identical... So why all the
> fuss ?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<javaposse%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>



-- 
Cédric

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to