On 1/27/13 9:25 PM, Zach the Mystic wrote:
I first saw UFCS and optional parentheses in Ruby and it seemed both
alluring and deceptively simple. I will give you a thought in return for
your thought. Reading the other people's posts who prefer always parens
makes it seem that if they had to choose between a Volvo and a Ferrari,
they would choose the Volvo, whereas you would choose the Ferrari. But
the thing is, if the Ferrari really is a damn good car, it's the best of
both worlds. Do you think the Ferrari (i.e. optional parens) has got
what it needs under the hood?

I'm not sure I understand the question.

Also, the single-instance struct suggestion is another possible way to
eliminate @property entirely. They would all just be single instance
structs with no data of their own. opGet would satisfy the sticklers by
making parens downright illegal on functions which call it.

An idiom is a possible option.


Andrei

Reply via email to