bot@lemmy.smeargle.fansMB to Hacker News@lemmy.smeargle.fans · 7 months ago"Useless Ruby sugar": Endless (one-line) methodszverok.spaceexternal-linkmessage-square1fedilinkarrow-up12arrow-down10file-textcross-posted to: hackernews@derp.foo
arrow-up12arrow-down1external-link"Useless Ruby sugar": Endless (one-line) methodszverok.spacebot@lemmy.smeargle.fansMB to Hacker News@lemmy.smeargle.fans · 7 months agomessage-square1fedilinkfile-textcross-posted to: hackernews@derp.foo
minus-squaremyliltoehurtslinkfedilinkarrow-up1·7 months agoSo this def my_method(args) body end Can now be written as def my_method(args) = body In exchange for some edge cases which cause new issues with the new syntax. Why even bother…?
So this
def my_method(args) body end
Can now be written as
def my_method(args) = body
In exchange for some edge cases which cause new issues with the new syntax. Why even bother…?