iamdisappoint@reddthat.com to Programmer Humor@programming.dev · 20 hours agoIt was best as a silly toy language in the 1990's...reddthat.comimagemessage-square102fedilinkarrow-up1523arrow-down155
arrow-up1468arrow-down1imageIt was best as a silly toy language in the 1990's...reddthat.comiamdisappoint@reddthat.com to Programmer Humor@programming.dev · 20 hours agomessage-square102fedilink
minus-squarehperrin@lemmy.calinkfedilinkEnglisharrow-up1·3 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.