Once upon a time, I used to be an outlaw; so I wrote code like this (just for fun):
const char* gauge(int n, int s, int b) {return n < s ? "Smol" : n > b ? "Big" : "Mid";}
The method to the madness was that at least I could differentiate things by looking at the braces and other symbols.
Now, there's the OG called Lisp and its comrades like Scheme, Racket, etc.
Their rule is: if you keep a close eye on parentheses, the rest are just whimsical words that you type — which is kinda similar to my outlaw days.
(define (gauge n small big)
(cond((< n small) "Smol")
((> n big) "Big")
(else "Mid")))
But at least, for the love of eyewear, can't we make it a norm to CAPITALIZE the procedure names?
(define (GAUGE n small big)
(cond((< n small) "Smol")
((> n big) "Big")
(else "Mid")))
P.S. I know, code is data and data is code, so at the end of the day it doesn’t matter.
But still, for the love of .......🥸
#lisp #scheme #racket #clojure #clojurescript