I prefer putting the first { on the same line as the conditional logic too.
Reads more like the written word and ColdFusion.
Duane
-----Original Message-----
From: Todd Ashworth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:27 PM
To: CF-Community
Subject: Survey - Coding Style
I prefer:
Int foo(int bar) {
Return bar * bar;
}
>OK, so I have been arguing with another guy here about where to put the
>curly braces in your C/C++/C# application, I contend:
>
>Int foo(int bar){
> Return bar * bar;
>}
>
>He contends:
>
>Int foo(int bar)
>{
> return bar * bar;
>}
>
>Cast your votes now!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5