73
submitted 1 year ago by Paradox to c/programming@beehaw.org
you are viewing a single comment's thread
view the rest of the comments

At least C has a working equals operator. Go on, tell me about ===, invite the ridicule. I bet I know more about JavaScript than you do. I hate it because I am intimately familiar with it.

console.log(null==0)
console.log(null>0)
console.log(null>=0)

console.log(0==[])
console.log(0=='0')
console.log('0'==[])

// no equality comparison, but that shit is funny
console.log("2"+"2"-"2")

Any proper programming language wouldn't even compile any of that nonsense.

And something being widespread doesn't mean it's either right or good - look at religions.

this post was submitted on 02 Aug 2023
73 points (100.0% liked)

Programming

13360 readers
2 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS