khoi@slrpnk.net to Go programming language discussion@lemmy.ml · 1 year agoShould I use naked return? If not, why? If yes, when?message-squaremessage-square2fedilinkarrow-up16arrow-down10
arrow-up16arrow-down1message-squareShould I use naked return? If not, why? If yes, when?khoi@slrpnk.net to Go programming language discussion@lemmy.ml · 1 year agomessage-square2fedilink
minus-squareck_linkfedilinkarrow-up4·1 year 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.