PythOnRails to Programming · 3 年前"Useless syntax sugar": Numbered block parameters in Rubyzverok.spaceexternal-linkmessage-square35linkfedilinkarrow-up165arrow-down14
arrow-up161arrow-down1external-link"Useless syntax sugar": Numbered block parameters in Rubyzverok.spacePythOnRails to Programming · 3 年前message-square35linkfedilink
minus-squareexussum@lemmy.worldlinkfedilinkarrow-up2·3 年前In what way? If you encountered a function that had x and y which just added them together, that’s not readable enough?
minus-squareMiaou@jlai.lulinkfedilinkarrow-up1·3 年前Well in a vacuum yes sure, you’re right, but in practice there’s always some context. x and y could be referring to axes, where an addition makes little sense. However lhs and rhs make more sense if you’re overloading an operator
In what way? If you encountered a function that had x and y which just added them together, that’s not readable enough?
Well in a vacuum yes sure, you’re right, but in practice there’s always some context. x and y could be referring to axes, where an addition makes little sense. However lhs and rhs make more sense if you’re overloading an operator