-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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"
}
}
}
Metadata
Metadata
Assignees
Labels
No labels