A new Gleam feature I love - [Giacomo Cvalieri]

2 years ago by Mac to c/gleam

A new Gleam release is right around the corner and it will come with a new feature I absolutely love: label shorthands. It might not be as flashy as other features but I wanted to implement it for the longest time and think it will really help me write better code. Here's what it's all about.
Nereuxofficial 1 point 2 years ago
Jan
  |> month_to_string
  |> io.println

This is something that really confused me when i first read some gleam code because it does not really look like a function call in other languages, which would be read from right to left but this way seems more logical when considering we read left to right and i think i would really get used to it when i get the opportunity to use it more

path: 0 11493395, hotness: undefined, score: 1, children: 0
gleam
gleam

@programming.dev

login for more options
146
34
10

A community for the gleam programming language! https://gleam.run/

go to feed...