by arakyd · 17y ago · 0 comments
I program in C#, and lambdas and delegates are nice (I can't use expression trees because the company I work for standardizes on .NET 2.0). But the system is too gnarly, still verbose as fuck, and nowhere near as nice as Lisp (as Krishnan freely admits). This just increases the need for sophisticated developer tools and makes things more obscurantist, not less. C# is just another variation on Java, i.e. a way to drag Elvis types 10% closer to Lisp without depriving them of their oh so precious ALGOL syntax.
Fuck the priesthood, seriously.
[a, b, c] -> '(a b c)
f(x) -> (f x)
These two translations are strictly syntatic modifications to lisp.Some syntactic sugar:
{
f(x)
g(x)
} ->
(progn
(f x)
(g x)
)
With these three tweaks, we are probably 90% of the way to recruiting the common man (if syntax is really what puts them off). destructuring-bind([a b &rest c] some-list lambda([x] +(a b x)))
or loop(for i from 1 to 10 collect 1+(i))
or with-current-buffer(get-buffer-create("foo")
save-excursion(
insert(text)
buffer-substring-no-properties(point-min() point-max())))
This looks horrible. There is an advantage in using the same syntax for both lists and function application.Lisp gets it right by excluding sugar from the language kernel, but a "batteries-included Lisp" should include it in a standard library.
http://arclanguage.org/item?id=8172
The syntax is inspired by McCarthy's in his paper from 1958. It works, but i don't find it useful.
My point is: ITS JUST SYNTAX! Syntax doesn't define the language, just the look. I do like a nice, clean, concise syntax though.
Hell, I even hate doing any complex shell scripting because I can never remember the difference between [ ] and [[ ]] and ( ) when using conditionals.