737
JavaScript (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] Blackmist@feddit.uk 4 points 1 year ago

Some automatic conversion is fine.

a=3+0.2

print("Hello {name}. You are {age} years old")

That kind of thing. But the principle of least surprise definitely applies. If you get to the point where you're adding two booleans and a string, I feel like the language should at least say something. At least until the technology exists for it to physically reach out of your screen and slap you.

this post was submitted on 23 Jun 2024
737 points (96.5% liked)

Programmer Humor

24348 readers
1460 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS