logo       

Re: Brace style bias?: msg#00476

lang.scala

Subject: Re: Brace style bias?

Miles,

I would second this. It was a cause of a lot pain for me when I started
writing Rehersal. Additionally, I just prefer BSD style, simply because I can
visually 'scan' code to get an overview of its structure - a bit like the way
I look at essays to see the paragraphs...

Additionally, I would like to be able to write this for classes with longer
constructors:-

new MyDataLikeClass
(
"Hello World",
55.8,
"BLAH",
...
)

This coding style is useful if you make extensive use of constructor injection
(as I do; it minimises the need to then be tempted with pointless accessors
and irrelevant temporary variables).

Raph Cohn
http://rehersal.sourceforge.net





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise