We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Again, Haskell has rather bad syntax for this:
instance Show Bool where show True -> "True" show False -> "False"
Rust:
impl Show for Bool { fn show(b) -> String { match (b) { true -> "true" false -> "false" } } }
I think Rust's is closer to what I want when the extraneous parts are cut out:
impl Show for Bool { show = (b) => { match (b) { True -> "True" False -> "False" } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Again, Haskell has rather bad syntax for this:
Rust:
I think Rust's is closer to what I want when the extraneous parts are cut out:
The text was updated successfully, but these errors were encountered: