Re:Macro-ts: TypeScript compiler with typesafe syntactic mac...
by eyelidlessness on Tuesday May 30, 2023 @02:45AM
(#36121841)
Agree. It’s template TS, which is why I shied away from it when I first encountered it. I do think it has some language service support FWIW, but I don’t want even more new arbitrary syntax in a constantly churning language. I do want TS macros, I just want them to be compile time functions over existing syntax with, well… lisp but I can’t have that.
Re:Macro-ts: TypeScript compiler with typesafe syntactic mac...
by paulddraper on Tuesday May 30, 2023 @02:19PM
(#36128443)
TypeScript has plugins now, so that would be possible?
A ts macro system would be integrated with ts language service and tsc. As a compile time language, the main advantage of tsc is, well, developer experience, which, unless I'm missing something, gets thrown out the door here.
Also, the demo includes very weak use cases, much of it could be done directly with js functionality without the additional macros. It's not clear to me how much effort and computation time does this save.