News for hackers. Stuff that matters.
Re:Were multiple return values Go's biggest mistake? by joeyagreco on Saturday March 15, 2025 @03:58PM (#43374822)
def add(a: int, b: int) -> int: return a + b

is this surprising to you ?

Re:Were multiple return values Go's biggest mistake? by nivertech on Saturday March 15, 2025 @04:08PM (#43374855)
Yes, since I was a kid.

My first real computer was an RPN calculator.

Also one of my first programming textbooks back then used an educational PL which allowed multiple return values (late 80s).

I think in terms of data flows and circuits, so it’s natural for me.