7 ms·
Gleam lang has no if—only case (aka match) expressions. Its sincerely delightful. Its more capable than ifs by bringing multi conditions into a single expressio
by cdaringe 2y ago
Gleam lang has no if—only case (aka match) expressions. Its sincerely delightful. Its more capable than ifs by bringing multi conditions into a single expression, allows for closures to funnel into assignments instead of forcing a mutation in the parent scope.
Just lovely. For some reason, rust and ocaml added ifs even though they have match. In rust if-let has orthogonal value, but id happily live without it for less syntax