logoalt Hacker News

asplake10/12/20241 replyview on HN

“Gleam is a statically-typed language, meaning you must declare the type of a variable before using it.”

That second part is wrong. Gleam has type inference.


Replies

pxc10/12/2024

In the era of type checkers for dynamic languages, it might be better to write

> Gleam is a statically-typed language, meaning if you declare the type of a variable before using it, that will actually do something.

:)