hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 11 months ago"☹️".reverse() == "🙂"sopuli.xyzexternal-linkmessage-square24linkfedilinkarrow-up1232arrow-down115cross-posted to: programmer_humor@programming.dev
arrow-up1217arrow-down1external-link"☹️".reverse() == "🙂"sopuli.xyzhydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 11 months agomessage-square24linkfedilinkcross-posted to: programmer_humor@programming.dev
minus-squaretmat256@lemmings.worldlinkfedilinkarrow-up3·11 months agoIt’s also incredibly useful as a failsafe in a helper method where you need the argument to be a string but someone might pass in something that is sort of a string. Lets you be a little more flexible in how your method gets called
It’s also incredibly useful as a failsafe in a helper method where you need the argument to be a string but someone might pass in something that is sort of a string. Lets you be a little more flexible in how your method gets called