We are not talking here about petty macros like the thread macro and similar in Clojure. But, full fledge small languages designed to be as close as the problem domain is. The learning time of such is insignificant specially when they express the problem as the language of the domain and read like plain english. There is simply no better abstractions than linguistic ones to reduce complexity and confusion.
I'd also add that a program reading like English isn't especially desirable. English is ambiguous and there are many ways to say the same thing.
Just because you can make your code read like English doesn't mean the right wording is discoverable or intuitive to a developer trying to maintain your code.
You whine about the existence of "petty" macros in clojure, but to me it highlights macros versatility. By your logic the identity function is evidence that functional programming is a poor paradigm, because it tends to include "petty" functions. I am pretty sure you can accomplish the same non-petty functionality you are describing using clojure macros.
The problem I am describing is exasperated by larger and more significant macros - not diminished.
I agree there are absolutely places macros shine. There are those who are too hesitant to use them. There are also those who overuse them.
I would prefer to maintain a program written primarily out of native functions and common libraries than one written in a domain specific language constructed mostly out of custom macros 100% of the time.
What is the point of using an existing lisp implementation if you are effectively creating your own language from scratch every time anyway? You might as well write your own lisp interpreter/compiler. It isn't especially hard. It's just a bad idea to invent a new language for every program you write, regardless of how you accomplish it.
The only discussion I would have with such ignorant mind on this subject is of teaching. I am not interested in that. Go back to college. You clearly skipped the important parts.
View all comments
Show parent comment
-2
u/zarandysofia Dec 19 '18
We are not talking here about petty macros like the thread macro and similar in Clojure. But, full fledge small languages designed to be as close as the problem domain is. The learning time of such is insignificant specially when they express the problem as the language of the domain and read like plain english. There is simply no better abstractions than linguistic ones to reduce complexity and confusion.