Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
polux
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
polux
12y ago
Map is solving the real problem of code duplication for the scenario "create a new list whose elements are the elements of the original list to which f was applied". Not only does it reduce boilerplate but when you read map(f, lis
2.
▲
by
polux
12y ago
IDE support is not a prerogative of Java.
3.
▲
by
polux
13y ago
Google engineer here too. I completely agree with the fast edit/refresh cycle being a huge plus but that's precisely what Dartium (the build of Chromium that includes the Dart VM and ships with the Dart editor) is for.
4.
▲
by
polux
14y ago
Sorry, what do you mean by function hoisting? The fact that you can write mutually recursive functions at toplevel? Anyway, I was referring to variable hoisting.
5.
▲
by
polux
14y ago
You don't need a VM to compile something into Javascript but the VM buys you a fast edit/reload cycle and some tooling like a debugger. Also Dart can be used as server-side language and there the VM makes sense. It can also be used as an in
6.
▲
by
polux
14y ago
(Disclaimer: I'm partly working on Dart) - Every Javascript program is a valid typescript program so typescript doesn't fix JS semantics (like variable hoisting and the only numeric type being floats). I think typescript is a good fit when
7.
▲
by
polux
14y ago
The point is right now JS developers of big apps write this kind of comments because they are understood by tools like https://developers.google.com/closure/ .