←back to thread

160 points todsacerdoti | 1 comments | | HN request time: 0.734s | source
Show context
jongjong ◴[] No.41898801[source]
I also love JavaScript.

It's true, it has some really bad parts but you can avoid them.

If I could design the perfect language for myself, it would have the syntax of JavaScript and the portability of JavaScript but it would use Python's strong duck typing approach.

replies(2): >>41898846 #>>41898893 #
singpolyma3 ◴[] No.41898893[source]
JavaScript isn't really all that portable? Heck just making it run on the different JS engines and runtimes is a big pain sometimes
replies(1): >>41899152 #
1. o11c ◴[] No.41899152[source]
I can't even figure out how to write typescript that conditionally uses browser-only or node-only libraries depending on which environment it's in. My current best guess is to write 2 completely independent typescript projects that happen to point to the same source files?

Let me cross-compile a C++ project any day ...