unlawfulbooger@lemmy.blahaj.zone to Programmer Humor@lemmy.ml · 11 months agoOn this deserted island I could use some help()lemmy.blahaj.zoneimagemessage-square30fedilinkarrow-up11.18Karrow-down113
arrow-up11.17Karrow-down1imageOn this deserted island I could use some help()lemmy.blahaj.zoneunlawfulbooger@lemmy.blahaj.zone to Programmer Humor@lemmy.ml · 11 months agomessage-square30fedilink
minus-squareWhiskyTangoFoxtrot@lemmy.worldlinkfedilinkarrow-up15arrow-down1·11 months 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·11 months agoJust once I want '1' + '2' to equal '3'. Is that so much to ask?
minus-squareMetype @lemmy.worldlinkfedilinkEnglisharrow-up7·11 months agoYou want to remove the string concatenation operator? Cause that’ll do it
minus-squaretetris11@lemmy.mllinkfedilinkarrow-up9·11 months 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.