iamdisappoint@reddthat.com to Programmer Humor@programming.dev · 18 days agoIt was best as a silly toy language in the 1990's...imagemessage-square164linkfedilinkarrow-up1690arrow-down184
arrow-up1606arrow-down1imageIt was best as a silly toy language in the 1990's...iamdisappoint@reddthat.com to Programmer Humor@programming.dev · 18 days agomessage-square164linkfedilink
minus-squarehperrin@lemmy.calinkfedilinkEnglisharrow-up2·18 days 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.