3 ms·
I really like the idea of gleam but I don't want to hand implement serialization for every type (even with an LSP action) in 2026.
by brandonpollack2 9mo ago
I really like the idea of gleam but I don't want to hand implement serialization for every type (even with an LSP action) in 2026.
- ocean_moist 9mo agoBiggest issue with this language. But... fairly trivial to implement codegen with gleam/glance[0]. No good libraries do this well right now (e.g. support for discriminated unions). [0] https://hexdocs.pm/glance/glance.html https://hexdocs.pm/glance/glance.html
- worthless-trash 9mo agoI rarely serialise every type in my gleam code, My quick back of the napkin math is less than 5%.
- brandonpollack2 9mo agoBut 100 percent of projects writing the same stuff
- worthless-trash 9mo agoI don't think anyone is serializing exactly the same stuff that i'm doing.
- virtualwhys 9mo agoDart has the same glaring issue (yes, yes, you can use a codegen library but it's not the same).
- lawn 9mo agoIndeed. Gleam is a sort-of mix between Elixir and Rust, yet you don't have to explicitly implement serialization for either of them. It's definitely something they should figure out.