The point of Lisp is that you don't need to invent your own language. Just "defmacro" and get back to solving your real problem.
The point of Lisp is that you don't need to invent your own language. Just "defmacro" and get back to solving your real problem.
Just "defmacro" and get back to solving your real problem.
Learning isn't a real problem?
If you are just doing something for fun/learning, there is no need to release it to the world. I've written lots of programming languages, but I don't expect anyone to use them.
I don't see newbs learning Perl, Python, C++, Java, etc. by writing their own dialect or interpreter for them.
This language is more like C++ or Java than Lisp.
There's no need to keep it from the world either.
(eq (symbol-function 'map)
(symbol-function 'common-lisp::mapcar)) ---> T
(eq (symbol-function 'mapseq)
(symbol-function 'common-lisp::map)) ---> T
And you can do lots of syntax stuff using read macros.Even simple stuff like doing, e.g.,
(defmacro mvb (&rest args)
`(multiple-value-bind ,@args))
can really help.Having said all that, however, I have written my own interpreter in C for my own Lispy language, which I continue to develop (and use a lot for real tasks).
As for the parentheses, I don't see any excess.
(let (foo bar) ...)
and (let ((foo 0)(bar 1)) ...)
are both useful. I would hate to have to write: (let (foo nil bar nil) ...)
just because you're afraid of a few parentheses. It is easy to type and easy to read. (foo nil bar nil) is, IMHO, nearly unreadable.Edited to add: Another reason I like the ((var binding)...) syntax is because it keeps the core language as unambiguious as possible. If I want to have an Arc-like binding operator, I can just write one and use that:
(my-let (foo 1 bar 2 baz 3) (+ foo bar baz)) ; ==> 6 (let (foo bar) nil ...) (let foo 0 ...)
(and what rkts wrote, due to Arc autodestructuring things.) the multi-bind is withcertainly things can be renamed, but personally i feel that if you don't go the extra mile for your users, someone else will, and you probably don't deserve success