News for hackers. Stuff that matters.
Re:Experience Report: 6 months of Go by throwaway894345 on Monday May 02, 2022 @02:12PM (#31238697)
I'm not sure I'm following. Rust allows:

    println!("{}", if x == None { "foo" } else { "bar" });
How would unions make this more ergonomic? For example, in Python (with type annotations), you would have to do:

    print("foo" if x == None else "bar")

There are no comments on this comment yet.