iamdisappoint@reddthat.com to Programmer Humor@programming.dev · 21 hours agoIt was best as a silly toy language in the 1990's...reddthat.comimagemessage-square107fedilinkarrow-up1539arrow-down158
arrow-up1481arrow-down1imageIt was best as a silly toy language in the 1990's...reddthat.comiamdisappoint@reddthat.com to Programmer Humor@programming.dev · 21 hours agomessage-square107fedilink
minus-squarehperrin@lemmy.calinkfedilinkEnglisharrow-up1·4 hours agoNo. By that same logic, memory safety issues in C/C++ don’t make them bad programming languages. If you’re worried about it, like you’re accepting input from the user, sanitize it. if (typeof userProvidedData !== "string") { throw new Error("Only works on strings."); } Better yet, put that in a function called assertString.
No.
By that same logic, memory safety issues in C/C++ don’t make them bad programming languages.
If you’re worried about it, like you’re accepting input from the user, sanitize it.
if (typeof userProvidedData !== "string") { throw new Error("Only works on strings."); }Better yet, put that in a function called
assertString.