Comment

Comment by prmph

As a front-end interface, JS is pretty good.

- It has simple, straightforward, and pleasant syntax/semantics. Except for a few tweaks here and there, there is no need to re-invent the wheel here.

- It is pretty functional, all that's needed is to add everything-is-an-expression

- It supports multiple paradigms (functional, imperative, OOP)

- Since it has no types currently, a _modern_ type system can be feasibly added, supporting concepts like result/error instead of exceptions, maybe/option, pattern matching, etc.

- It has easy-to-reason about async features

- It has a huge ecosystem; it shouldn't be hard to port many high-quality packages to a similar language

Now, the lower-level features are another matter entirely, but it shouldn't be too difficult to retrofit what we want, like multi-threading (maybe building on top of workers), utf-8 strings, and so on.

parent prmph 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton