(#ondf3bq) @prologic@twtxt.net Yes, C has it. I even thought that C invented it, but it seems to stem from CPL.
The closest to get to if expressions at the moment is to use a lambda:
foo := func() {
if bar {
return "spam"
}
return "eggs"
}()
But that’s also not elegant at all.
#f3v5j7q