Comment

Comment by yid

> Having different `class` macro definitions between codebases that use sweet.js will devolve into madness.

As long as you don't have different definitions in the same JS file, it's not really a problem because each file can be compiled down to JS independently of the others. I'd imagine you could even add a package.json flag to specify which version of a sweet.js "syntactic sugar" library to use for a given package, and npm could compile the files automatically on install.

The more transparent the sweet.js workflow can be (much like LESS/SASS is for CSS), the more likely it is to be adopted.

parent yid 13 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton