Live data from Hacker News

Poll: Semicolons in JavaScript

news.ycombinator.com

41–44 of 44 posts

Re: Poll: Semicolons in JavaScript

#41
post #30

Absolutely. Also, always use "var" in your variable declarations. I can't count how many times a scope issue bit me in the ass b/c of a missing "var"

Putting a single "use strict"; line at the top of a source file or function will turn on ECMAScript 5 strict mode for that scope, which will error on assigning a previously undeclared variable. I'm not sure if any browsers currently implement this though.

Re: Poll: Semicolons in JavaScript

#42

Mind your own business! It's none of your business how I choose to code my own projects. If we're on the same project together, we can discuss it and decide on a style that works for everyone. When I contribute to an OpenSource project, I adopt whatever style they have defined. For my own projects, I have personally opted out of using unnecessary semicolons and brackets unless they improve maintainability or readabil…

You were down-voted because of your tone, which came across as very rude; certainly an undesirable characteristic of posters.

Re: Poll: Semicolons in JavaScript

#43

Mind your own business! It's none of your business how I choose to code my own projects. If we're on the same project together, we can discuss it and decide on a style that works for everyone. When I contribute to an OpenSource project, I adopt whatever style they have defined. For my own projects, I have personally opted out of using unnecessary semicolons and brackets unless they improve maintainability or readabil…

You were down-voted because of your tone, which came across as very rude; certainly an undesirable characteristic of posters.

[deleted]

Re: Poll: Semicolons in JavaScript

#44
post #35
post #9

Earlier quoted context omitted.

Parenscript; the happy amalgamation of Common Lisp and JavaScript, in your server or your browser. http://common-lisp.net/project/parenscript/ People are writing Node.js code in it :-) http://tryparenscript.com/ It reminds me of an old Scheme dialect, implemented in Common Lisp, and was used to implement the Yale Haskell compiler (by Sandra Loosemore[1], et al.); it's just one of those baroque language towers that yo…

To plug my own project, I've also been developing a lisp dialect that compiles to JavaScript. I plan to announce on HN when the docs are complete. It's fully self-hosting, runs in the browser, and comes with a repl/compiler that runs on node. http://github.com/jbr/sibilant http://sibilantjs.info/

That's some excellent work there my friend. I specially liked your Lisp/jQuery integration : http://github.com/jbr/sibilant/blob/master/public/javascript...
Post reply on HN