DEV Community

Discussion on: Why doesn't Go have Ternary?

Collapse
 
elasticrash profile image
Stefanos Kouroupis

ternary operations have become quite common in most languages nowadays that when you run into a language that does not support them in a certain way, you feel surprised. That's how I felt a few years ago with Rust, but Rust's compact if/else statement makes a lot more sense and its far more readable than a ternary operator.