galdor, Go 1.21 introducing min and max is good. Go devs finally realizez that "c := max(a,b)" is better than:
c := a
if b > a {
c = b
}If we're luck in a couple years they'll finally understand why so many have been asking for the conditional ternary operator. One can dream.
Add comment