3 ms·
as someone who only has a little experience with pattern matching, how does this look bad? The syntax looks good enough to me that I could and would want to use
by Dibes 8y ago
as someone who only has a little experience with pattern matching, how does this look bad? The syntax looks good enough to me that I could and would want to use it.
- ealhad 8y ago“looking bad” is a really subjective thing. Here is the syntax for different languages: - Rust https://doc.rust-lang.org/stable/book/second-edition/ch06-02-match.html https://doc.rust-lang.org/stable/book/second-edition/ch06-02... - Haskell http://learnyouahaskell.com/syntax-in-functions http://learnyouahaskell.com/syntax-in-functions - Scala https://docs.scala-lang.org/tour/pattern-matching.html https://docs.scala-lang.org/tour/pattern-matching.html