khoi@slrpnk.net to Go programming language discussion@lemmy.ml · 9 months agoShould I use naked return? If not, why? If yes, when?message-squaremessage-square2fedilinkarrow-up17arrow-down10
arrow-up17arrow-down1message-squareShould I use naked return? If not, why? If yes, when?khoi@slrpnk.net to Go programming language discussion@lemmy.ml · 9 months agomessage-square2fedilink
minus-squareck_@discuss.tchncs.delinkfedilinkarrow-up4·9 months agoYeah, I tend to agree, naked returns are hard to read and they don’t really add much in terms of value. I avoid them in my code.
Yeah, I tend to agree, naked returns are hard to read and they don’t really add much in terms of value.
I avoid them in my code.