News for hackers. Stuff that matters.
Re:"Useless Ruby sugar": Argument forwarding by Pxtl on Friday November 24, 2023 @11:34AM (#38405643)
There's only 3.

Named args, unnamed (positional) args, and a special block. Because Ruby was basically "let's make Python but without Guido's hatred of metaprogramming", so it copied Python's *args and **kwargs and then added the block so you could make functions that look like control blocks.

To me the problem is that they're handled as 3 vars instead of 1 object that has 3 public properties.*

Re:"Useless Ruby sugar": Argument forwarding by 38 on Friday November 24, 2023 @12:44PM (#38406322)
> only

That word doesn't mean what you think it means.