logoalt Hacker News

asplake • 10/12/2024 • 1 reply • view 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

pxc • 10/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.

:)