News for hackers. Stuff that matters.
Re:Data notation in Clojure by blacktriangle on Thursday July 01, 2021 @01:36PM (#27701880)
The thing about macros, it's not about day to day, or even month to month, macros are about year to year. Macros are what let programers expand the language in ways the designers never even considered, thus increasing the timescale over which your code is maintainable.

For a recent example of why you wish your language had macros, look at function builders in Swift. When SwiftUI was first announced its syntax was a huge wtf, only later did we find out that a new language feature was enabling this syntax.

Now imagine if somebody outside of Apple had wanted to do this and had to convince the Swift dev team to incorporate this feature...good luck.

In any given lisp, function builders are a 10 minute project to make a macro.

Re:Data notation in Clojure by bjoli on Thursday July 01, 2021 @03:09PM (#27703175)
CLOS was bolted on to a lisp a very long time ago, in a galaxy far far away. It felt and looked like a first class feature of the language.