r/programming • • Apr 26 '16

Node.js v6.0 released

https://nodejs.org/en/blog/announcements/v6-release/
132 Upvotes

79 comments sorted by

View all comments

Show parent comments

59

u/[deleted] Apr 26 '16

Call me when it's done

23

u/RiWo Apr 27 '16

Meanwhile I'll just enjoying mature Java libs, framework, and tools.

0

u/[deleted] Apr 27 '16

[deleted]

16

u/RiWo Apr 27 '16

Better than to have guess which type is this variable again?

9

u/[deleted] Apr 27 '16

Type? What is type?

3

u/[deleted] Apr 27 '16

Obj

0

u/[deleted] Apr 27 '16

[deleted]

9

u/balegdah Apr 27 '16

I don't understand why people say this. You can just check the type with typeof or use ===

Yeah, you don't really understand.

2

u/[deleted] Apr 27 '16

To explain a bit in a ELI5-fashion (dont want to patronize though)

We are talking about letting the computer tell you type errors before you even run the programm. This can save you some time.

typeof or === happen after you started your programm. So you can't save time by spotting it early.