zlacker

[parent] [thread] 1 comments
1. tymsca+(OP)[view] [source] 2025-12-13 19:39:53
You most likely asked an AI for this. They always think there is an `if` keyword in case statements in Gleam. There isn't one, sadly.

EDIT: I am wrong. Apparently there are, but it's a bit of a strange thing where they can only be used as clauses in `if` statements, and without doing any calculations.

replies(1): >>WJW+p1
2. WJW+p1[view] [source] 2025-12-13 19:48:26
>>tymsca+(OP)
There is though?

https://tour.gleam.run/flow-control/guards/

[go to top]