Hacker News new | past | comments | ask | show | jobs | submit login
Gleam Gets ‟Rename Variable" (gleam.run)
4 points by ingve 3 months ago | hide | past | favorite | 1 comment



Gleam seems like such a nice language. The language server integrated in its single-binary toolchain looks nice.

The only unexpected thing I've found is the lack of structs/objects. Instead you only have "enums", which they call custom types, and a "struct" is implemented as an enum with one variant, seen in the article:

    pub type Pokemon {
      Pokemon(pokedex_number: Int, name: String)
    }
I mean sure, why not, except you have to repeat the name ("Pokemon").




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: