News for hackers. Stuff that matters.
Re:Civet: A Superset of TypeScript by donatj on Tuesday October 22, 2024 @12:43PM (#41916111)
My biggest gripe with CoffeeScript, beyond it's scoping being madness [1], is it made writing very inefficient JavaScript much easier. The language was full of footguns.

Many times something would look perfectly reasonable in CoffeeScript but when you would actually read the JS it would be iterating the same dataset multiple times to grab individual items that could have and should have been a single loop.

1. https://donatstudios.com/CoffeeScript-Madness

Re:Civet: A Superset of TypeScript by shermantanktop on Tuesday October 22, 2024 @01:54PM (#41916849)
It's the Hibernate problem all over again. Any time one language is layered on another, the user is totally unaware of the degenerate cases that they are triggering, and the higher language is usually blocked from fixing those. Similar to C++ preprocessors which generated poor C.
Re:Civet: A Superset of TypeScript by donatj on Tuesday October 22, 2024 @04:05PM (#41918146)
You just about need some sort of ast optimizer or some such.