Hacker News new | ask | show | jobs
by Menge 4045 days ago
Define modifies the prototype, so `cat define 'x' x` should apply to every cat (the docs have an example for making it a local property instead.) I think the larger barrier is that most libraries have functions with optional arguments so you would need to consider how to wrap each one.

But I really don't get the "for JavaScript" mentions. Without at least a pre-transpiled script to download and use as you would any JS, it is "for JavaScript" much like it is "for x86-64 assembly."