4 ms·
I hope not. Didn't we already learn this lesson from macros? Having code that appears to do one thing but actually does something very different is a maintenanc
by Touche 10y ago
I hope not. Didn't we already learn this lesson from macros? Having code that appears to do one thing but actually does something very different is a maintenance nightmare. Once the people who decided to add that AST transform plugin are gone and new people take over that don't know about it, the trouble really starts.
Again, we've seen this in languages with macros. At least with macros it's part of main codebase; you usually have to include them in some way. With these AST transform systems the secret is tucked away in a build script somewhere.
- bpicolo 10y agoI've had poor experiences with PostCSS w/ regards to AST transforms. The different plugins tend to not interact with each other at all because they're just transforms. Feels worse than something that works together all around like scss.
- 15155 10y agoMuch of this, IMO, is due to a lack of a type system. The maintenance nightmare comes from when behavior changes and you have no way of knowing about it - a type system staves off some of this.