When to use parentheses around method args?

M

Mikael Brockman

Richard Dale said:
That's what I've done so far, but I might try Mikael's suggestion:

Er, not that it really matters, but I meant to say ``unless the argument
list is empty.''

mikael
 
R

Richard Dale

David said:
Richard, I certainly don't mean to jump down your throat.  For some
reason the spirit happens to move me at this moment to comment on this
in some depth.  I've spent almost four years listening to people talk
about "coming from Java" and "being used to Perl" and so on, as
rationales for both unconventional stylistic practices and language
change requests.  Sticking just to the former for the moment: I
believe that Matz and his colleagues came up with something really
elegant-looking and consistent as they developed traditional Ruby
style.  I think it's a pity to take the style apart and reassemble it
based on isolated decisions about small subsets of it -- especially
when those decisions are made on the basis of practices and
conventions from other languages.
I agree with you entirely - it's up to me to find out about idioms that the
communitity use, rather than suggest they adopt strange foreign ideas from
other languages.

One thing that pains me slightly about the 'Groovy' language is that they
think 'javans' can't learn ruby because it has insufficient curly brackets,
and therefore they have to re-invent the wheel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,406
Latest member
ElizabetMo

Latest Threads

Top