On Thu, 24 Jan 2013 13:14:00 -0800, mist <n...@none.none> wrote:

On Thursday, 24 January 2013 at 21:00:49 UTC, Jonathan M Davis wrote:
Being able to swap out a public variable with a function without having to
change any code using it is arguably the primary reasons that property
functions exist in the first place. ...

Yes, but not just any function. Side-effect free function that controls access to data. And Adam suggested it is fine to use properties to add side-effects to data assignments which is drastically different. I agree with all your words so it is probably just misunderstanding.

Actually I said that in C# is possible to write properties with side-effects, but that it runs counter to guidelines. I personally do NOT write properties with side-effects.

I was attempting to illustrate in a [much to] concise way why optional parens are bad...

--
Adam Wilson
IRC: LightBender
Project Coordinator
The Horizon Project
http://www.thehorizonproject.org/

Reply via email to