logoalt Hacker News

lxdlamtoday at 6:12 AM2 repliesview on HN

I still suspect the effectiveness of plugging in a type system patch to a complete system, like typescript to javascript. We still observe so many `as any` or `as unknown as` at every corner.

Despite of the suspicion, Gleam provides a better and elegant syntax for those who are not familiar with Erlang or functional programming languages, which I loved most.


Replies

__jonastoday at 8:27 AM

That doesn’t really apply to Gleam, it’s not a type syntax for another language that can be stripped, it’s its own language that compiles to Erlang and JS

giacomocavatoday at 6:49 AM

There’s no “unknown” or “any” in Gleam, it’s not possible to cheat the type system that way