8
galena
199d

Spending more time debugging a language than actually writing code

Comments
  • 3
    it's the javascript/typescript-way.
  • 1
    I ran into a node optimization flaw that screwed up my code.

    `(a || b).foo()` caused the runtime to replace all references of `a` earlier in the function with a shallow copy missing its inheritance. Using `a ??= b` and `a.foo()` instead avoided this. Very odd, and took awhile to troubleshoot.
  • 0
    @jestdotty Not my first run-in with compilers, unfortunately. Most were with MSVC++
Add Comment