logoalt Hacker News

9rxlast Tuesday at 8:16 PM1 replyview on HN

But then why accept multiple input arguments? Why not limit to a single argument, accepting a tuple where multiple arguments are necessary, for input too?

Where multiple input arguments are present, not having multiple output arguments is just strange.


Replies

throwawaymathslast Tuesday at 9:22 PM

Exactly. Why not make multiple argument function call syntatic sugar over a ~single argument tuple call?

https://ziglang.org/documentation/0.14.1/#call

show 1 reply