#1102 Represent `nil` with JavaScript `null`

Open
opened 8 years ago by nero · 0 comments

Originally at 2014-10-28T18:19:12Z by Herbert Vojčík

This is probably hard to implement, but why not to list it here?

Why not undefined: the value null is always the same in all frames /.contexts and does not have problems of undefined (rewriteable is older browser, as it's just a plain global variable, not a keyword). IMO, null is also better from principle - it's explicitly said "no object", not an implicitly defined "nothing was put here yet", which undefined is.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Originally at 2014-10-28T18:19:12Z by Herbert Vojčík This is probably hard to implement, but why not to list it here? Why not `undefined`: the value `null` is always the same in all frames /.contexts and does not have problems of `undefined` (rewriteable is older browser, as it's just a plain global variable, not a keyword). IMO, `null` is also better from principle - it's explicitly said "no object", not an implicitly defined "nothing was put here yet", which `undefined` is. <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/5583551-represent-nil-with-javascript-null?utm_campaign=plugin&utm_content=tracker%2F79201&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F79201&utm_medium=issues&utm_source=github). </bountysource-plugin>
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.