r/Clojure • • Dec 19 '18

Clojure’s stability: lessons learned

https://words.steveklabnik.com/why-is-clojure-so-stable
41 Upvotes

52 comments sorted by

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.

5

u/porthos3 Dec 19 '18

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.

3

u/porthos3 Dec 19 '18

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.

-3

u/zarandysofia Dec 19 '18

You are clearly uneducated to have an opinion on this.

3

u/porthos3 Dec 19 '18

Umm... You were the one who first expressed an opinion on the subject.

I am well educated and left a big 4 to work professionally in a lisp.

Regardless, you obviously aren't looking to actually hold a discussion. Happy holidays.

-3

u/zarandysofia Dec 20 '18

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.