[Javascript] line end character ;

Chris T christ at saeweb.com
Wed Jun 23 08:23:09 CDT 2004


> For as long as I have been coding, it has been taught to not rely on
default
> behaviors.  The world changes and your code will break at some point.  Be
> explicit as much as you can.
>
> Mark W.

By that same token, what if the change that came was to force people to just
use multiple lines instead of trying to put multiple statements on one?

I have no idea how the language was intended, but I believe readability in
code almost always prevails over 'slickness' or how compact it is (at least
that's the case in more modern langauges as space isn't a constraint like it
once was), so that would lead me to believe the semicolon may have been put
in as an afterthought for people who went shoot the latter 2...

Chris Tifer




More information about the Javascript mailing list