unlawfulbooger to Programmer Humor@lemmy.ml · 1 year agoOn this deserted island I could use some help()imagemessage-square31fedilinkarrow-up11.2K
arrow-up11.2KimageOn this deserted island I could use some help()unlawfulbooger to Programmer Humor@lemmy.ml · 1 year agomessage-square31fedilink
minus-squareWhiskyTangoFoxtrot@lemmy.worldlinkfedilinkarrow-up15·1 year agoGuessing at what the programmer wants instead of implementing consistent behaviour is what Javascript does. Do you want Python to become Javascript?
minus-squaretetris11@lemmy.mllinkfedilinkarrow-up5·1 year agoJust once I want '1' + '2' to equal '3'. Is that so much to ask?
minus-squareMetype @lemmy.worldlinkfedilinkEnglisharrow-up7·1 year agoYou want to remove the string concatenation operator? Cause that’ll do it
minus-squaretetris11@lemmy.mllinkfedilinkarrow-up9·1 year agoI 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'
Guessing at what the programmer wants instead of implementing consistent behaviour is what Javascript does. Do you want Python to become Javascript?
Just once I want
'1' + '2'
to equal'3'
. Is that so much to ask?You want to remove the string concatenation operator? Cause that’ll do it
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'
I kinda like that
Yes. Yes it is.