News for hackers. Stuff that matters.
Re:Stop Writing JavaScript Compilers. Make Macros Instead (2... by nialv7 on Tuesday September 11, 2018 @07:55AM (#17958854)
> so they (C macros) are pointless except for a few trivial things

Oh, believe me, they are NOT.

Re:Stop Writing JavaScript Compilers. Make Macros Instead (2... by jedimastert on Tuesday September 11, 2018 @08:44AM (#17959178)
Right? This seems a little obnoxious. I could totally see doing all of the things he talked about with C macros.

But whatever.

Re:Stop Writing JavaScript Compilers. Make Macros Instead (2... by hw_penfold on Tuesday September 11, 2018 @09:12AM (#17959399)
Re:Stop Writing JavaScript Compilers. Make Macros Instead (2... by ChrisSD on Tuesday September 11, 2018 @09:13AM (#17959405)
Since C macros are glorified copy/paste, you can do anything with C macros... which was the point, I think.
Re:Stop Writing JavaScript Compilers. Make Macros Instead (2... by KingMob on Tuesday September 11, 2018 @02:37PM (#17962189)
??? Not sure what you're getting at. You can't actually use the language itself from inside a C macro, like you could a Lisp.