Top Comments
All Comments (13)
-
Second video instead of (1 - n ) can't we use (- 1 n) ?
-
It seems that the debugging of LISP errors is a bit trickier than with other programming languages because it's easy to get lost in parenthesis... The part where he messes up is the only kind of experience I have with lisp. :-( However he recovers about a million times faster than I do because I still havent recovered... oh dear.
-
awesome man!
-
Want you know that I have learnt more about Lisp from just watching the first two tutorials you have here, than I have learnt from my professor in the past 2 months!
Thank you, and please upload more!
-
Oh, BTW 1+ works as an INC in GCL too, but they both only work with one argument.
-
(1- n) is valid under clisp 2.31. Tested and confirmed.
-
Good Job... nice fail
-
Look at this as (foobar n) where foobar is "1-" which is a function that returns a value that is one less than the argument. If you put a space between "1" and "-", like so (1 - n) you would be wrong because "1-" is the name of the function. Hope that makes sense to you!
Thank you for these tutorials.
I have understood more in the last 30 minutes, that I have in two months with the professor who is teaching our Lisp course right now!
Please make more Lisp tutorials!!!
jmluk777 1 year ago 6
Lisp symbols can start with a number, so "1-" is a perfectly cromulent function name. It's in GCL too, just tested it. I'm relatively new to Lisp so I'm not sure how widespread this is as an idiom for "decrement".
istartedi 1 year ago