News for hackers. Stuff that matters.
Re:Notes on the M4 Macro Language (2008) by harshreality on Friday May 20, 2022 @12:46AM (#31443453)
They have different design philosophies, but dhall[1] will generally do that sort of thing, and anyone who has dabbled with functional programming and hates baroque syntax common to many languages from the early days of computing may prefer dhall over something like m4.

[1] https://dhall-lang.org/

Re:Notes on the M4 Macro Language (2008) by hdjjhhvvhga on Friday May 20, 2022 @03:26AM (#31444349)
Of course you are right and hundreds of such tools exist. The only reason we are talking about m4 here is that is basically everywhere for legacy reasons.
Re:Notes on the M4 Macro Language (2008) by enasterosophes on Sunday May 22, 2022 @05:59PM (#31473223)
Correct. I was motivated to use m4 to solve the problem I had, because m4 is ubiquitous. I wanted to know more about it, and I wanted my config files to be generatable on any machine where I spend some time.