Gears
Gears
Ah yes. Utf-codepoint matching isn't implemented on the JavaScript target yet, and after the decision tree rewrite the compiler stopped checking for invalid patterns and just panicking instead
No, this is still a bug. This should emit an error, not panic. It will be implemented eventually
What current problems are there with the proposed design? It would be nice to get this feature in the language
`let assert as "message" Ok(inner) = value` That's the only version that works out of the initial proposal, and the one that most people seem to like
> What do you mean it's the only one that works? `let assert Ok(a) as "message" = value` would conflict with pattern assignment syntax, and `let assert something = panic...
That makes sense. Does trailing `as` for `let assert` make sense too? I can see it getting a bit tricky to read in certain situations but I feel this might...
Alright, that sounds reasonable. Are there any issues with this design?
I agree. I think there is going to be a similar problem whatever design we choose. If it's message first it could be something like: ```gleam let assert as "This...
Ok, so unless anyone has any more input on this, I guess I'll start working on a PR when I get time
This can be closed now that #3480 has been merged