Is there a proposal to adopt Go's style for return...
# random
e
Is there a proposal to adopt Go's style for returning multiple values?
Copy code
fun example(): (String, String) {
  return "one", "two"
}
That could be converted by the compiler to a
Pair<String, String>
, for example.
y
Is the
return
statement that much nicer than
return "one" to "two"
?
2
e
Well, with a pair it's not evident, but it gets better with more values. The return type is also easier to read imo.
e
Cool! Thank you