this post was submitted on 11 Dec 2023
1132 points (98.9% liked)

Programmer Humor

31292 readers
1346 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] WhiskyTangoFoxtrot 14 points 7 months ago (1 children)

Guessing at what the programmer wants instead of implementing consistent behaviour is what Javascript does. Do you want Python to become Javascript?

[–] [email protected] 5 points 7 months ago (2 children)

Just once I want '1' + '2' to equal '3'. Is that so much to ask?

[–] Metype 7 points 7 months ago (1 children)

You want to remove the string concatenation operator? Cause that'll do it

[–] [email protected] 9 points 7 months ago (1 children)

I think every language needs a please operator, which acts to enforce human expectation of a statement:

'1'  + '1'            ## evaluates to '11'
please '1' + '1' ## evaluates to '2'
[–] [email protected] 4 points 7 months ago

I kinda like that

[–] [email protected] 5 points 7 months ago

Yes. Yes it is.