3 ms·
I don't know how use works in gleam but, at first brush they seem very different. Use in elixir basically allows you to execute a macro callback in the module `
by aeturnum 2y ago
I don't know how use works in gleam but, at first brush they seem very different. Use in elixir basically allows you to execute a macro callback in the module `use`ing the other module. In gleam it seems to be a tool for chaining function calls (maybe closer to `with` in elixir?).
- behnamoh 2y agoYes, Gleam's "use" is similar to "with" in Koka and some other langs. It's really not the same "use" we are used to (pun intended).