Closed lpil closed 1 year ago
Hello!
The upcoming Gleam release as 2 syntax changes. panic (which can go anywhere an expression goes, like todo but without the string argument), and let assert <pattern> = <expression>, which is the new syntax for assert <pattern> = <expression>.
panic
let assert <pattern> = <expression>
assert <pattern> = <expression>
Thanks!
should assert simply be replaced by let assert or should both work?
let assert
Both are currently valid Gleam syntax.
https://github.com/gleam-lang/tree-sitter-gleam/pull/46 https://github.com/gleam-lang/tree-sitter-gleam/pull/48
Closed by #46 and #50
Hello!
The upcoming Gleam release as 2 syntax changes.
panic
(which can go anywhere an expression goes, like todo but without the string argument), andlet assert <pattern> = <expression>
, which is the new syntax forassert <pattern> = <expression>
.Thanks!