|
|
|
|
|
by debugnik
311 days ago
|
|
That's what Gleam's use expressions[1] are for (the last example is exactly this case). Most languages with the same heritage as Gleam have grown a similar syntactical feature, such as OCaml's binding operators or F#'s computation expressions. Although I appreciate how simple Gleam's is while having similar power. [1]: https://gleam.run/news/v0.25-introducing-use-expressions/ |
|