News for hackers. Stuff that matters.
Re:LSP could have been better by Hendrikto on Friday October 13, 2023 @05:19AM (#37868540)
> Textual syntax can be implemented a layer up, if the input to the interpreter/compiler is not text but a data structure.

If you designed the languages and interpreters/compilers around it. Neither Python nor Javascript are, though.

Re:LSP could have been better by fiddlerwoaroof on Friday October 13, 2023 @03:22PM (#37874467)
My point isn’t that existing languages are designed this way, but it wouldn’t be hard to retrofit this onto an existing language. Especially one like JavaScript that already has relatively widely-used transpilers