1 + 2
3
1 + "2"
"12"
1 - "2"
-1
1 + 2 + "3"
"33"
"1" + 2 - "3"
9
1 - 2 + "3"
"-13"
1 - 2 - "3"
-4
JavaScript
-
-
Replying to @ThePracticalDev @o_guest
And I thought the Python typing system was unpredictable...
3 replies 0 retweets 2 likes -
At least Python is strongly typed, so it tells you that you're an idiot if you 1 + "2"
1 reply 1 retweet 2 likes -
I'm with you on this, but don't forget: >>> 2 * "2" '22'
2 replies 0 retweets 2 likes -
Replying to @MarcelStimberg @gumnos and
That's perfectly fine, well defined string semantics. No problems with hat.
1 reply 0 retweets 1 like -
JS is well-defined as well ;) I mostly agree: IMO, automatic str->int conversion is bad, int->str ok
1 reply 0 retweets 2 likes
at least there's a BNF for Python and JS! 
7:44 AM - 30 Mar 2017
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.