News for hackers. Stuff that matters.
Re:Missing the Point of WebAssembly by yencabulator on Tuesday January 09, 2024 @07:42PM (#38934581)
This is how a language can be a mess:

    [] + [] = ''
    [] + {} = '[object Object]'
    {} + [] = 0
    {} + {} = NaN
    Array(16).join('wat' - 1) + ' Batman' = 'NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman'
https://www.destroyallsoftware.com/talks/wat
Re:Missing the Point of WebAssembly by mardifoufs on Tuesday January 09, 2024 @09:32PM (#38935412)
You can find examples like these for basically every single language.
Re:Missing the Point of WebAssembly by lifthrasiir on Tuesday January 09, 2024 @11:48PM (#38936311)
This is misleading, as the original talk executed them in the statement context where the preceding `{}` is an independent statement. `({} + [])` etc. are much more consistent.