PythOnRails@programming.dev to Programming@programming.dev · 11 months ago"Useless syntax sugar": Numbered block parameters in Rubyzverok.spaceexternal-linkmessage-square21fedilinkarrow-up142arrow-down13cross-posted to: hackernews@derp.foo
arrow-up139arrow-down1external-link"Useless syntax sugar": Numbered block parameters in Rubyzverok.spacePythOnRails@programming.dev to Programming@programming.dev · 11 months agomessage-square21fedilinkcross-posted to: hackernews@derp.foo
minus-squareexussum@lemmy.worldlinkfedilinkarrow-up1arrow-down1·11 months agoThis makes me want to write a function for you to add to numbers where the variables are leftumber and rightnumber, instead of x and y.
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up1·11 months agoif “left” and “right” were relevant for addition, they would indeed be better names
minus-squareexussum@lemmy.worldlinkfedilinkarrow-up1·11 months agoAre you against using a single letter variable like e for element in iterating over things?
This makes me want to write a function for you to add to numbers where the variables are leftumber and rightnumber, instead of x and y.
if “left” and “right” were relevant for addition, they would indeed be better names
Are you against using a single letter variable like e for element in iterating over things?