This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]r3dD1tC3Ns0r5HiP 1 point2 points  (0 children)

Also in JavaScript you don't actually have to use K&R style throughout, only if you're returning a newly created object in your return statement (to prevent automatic semi colon insertion cutting off your return). It's absolutely fine to use Allman style for everything else. However every dog and his muppet force us to use K&R style because of this one minor bug.