The syntax for adding a message to panic and todo is now this
todo as "handle the case when..."
panic as "this is unreachable as..."
Currently only a string is permitted on the right hand side, but perhaps in future an expression would be supported. It may be good to have the tree sitter support parsing an expressions there to be more permissive than the compiler parser.
Hello!
The syntax for adding a message to
panic
andtodo
is now thisCurrently only a string is permitted on the right hand side, but perhaps in future an expression would be supported. It may be good to have the tree sitter support parsing an expressions there to be more permissive than the compiler parser.