@wycats @stefanpenner Hey is it too late to fix ES6 behavior for this?
fn = () => { x: 42 }
x is a label here, fn returns undefined :(
@BrendanEich @jo_liss @stefanpenner Could it be retrofitted onto strict mode? Might be web compat.
-
-
@wycats@BrendanEich@jo_liss@stefanpenner My spidey sense is unclear on whether it might even fly for the whole web, not just strict mode. -
@littlecalculist@BrendanEich@jo_liss@stefanpenner the javascript: issue seems plausible. -
@wycats@littlecalculist@BrendanEich@jo_liss@stefanpenner wouldn't arrows be new code, thus likely to be fixed quickly? -
@ljharb@littlecalculist@BrendanEich@jo_liss@stefanpenner We could definitely do it for just arrows, but maybe we can do better
End of conversation
New conversation -
-
-
@wycats@jo_liss@stefanpenner Yeah, since strict mode (prior to ES6 modules) is underused, might well fly. -
@BrendanEich@jo_liss@stefanpenner it's underused *especially* by people who do crazy things like cargo cult `javascript:` into a program -
@wycats@jo_liss@stefanpenner not cargo cult AFAIK -- just copy-paste and concatenation. -
@wycats@jo_liss@stefanpenner 1/ Context-blindness if not copy/paste helped people write onclick=`javascript:...` too. Again copy-paste is -
@wycats@jo_liss@stefanpenner 2/ most parsimonious explanation, because in Netscape 2 some elements lacked onclick but had href= or src=. -
@BrendanEich@jo_liss@stefanpenner better explanation, but still unlikely to occur in people opting in to strict mode in 2015 :)
End of conversation
New conversation -
-
-
@wycats@brendaneich@jo_liss@stefanpenner I footgunned myself with this too -
@dan_abramov - footgunned is a great word that I will be using frequently starting today
End of conversation
New conversation -
-
-
@wycats@BrendanEich@jo_liss@stefanpenner Web compat in case of arrow functions?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.