you are viewing a single comment's thread
view the rest of the comments
[–] 49 points 8 months ago (1 child)

You see this kind of stuff in C all the time when a code base supports multiple OSs by using macros.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 27 points 8 months ago

    Yes, though at least with C you have the compiler to optimize the cruft out of your binary and end up with a nice, clean program.

    With JavaScript this is going to incur some runtime cost everywhere this library is used, even if it only happens once when getting optimized out by the JIT compiler.

  • source
  • parent