WOW, all that just to declare two variables and add them, LOL! It's amazing how simplistic Python's syntax is compared to most languages. . .Anyways, I'm not complaining, just an observation. And THANKS for this great tutorial. I hope you keep 'em coming, cause I want to learn LISP next. . .
@Colstonewall Haha, in most lisp languages a common trait is that you avoid using variables as often as possible, and the relative uglyness of a 'let' kind of forces you to do so, or at least, I feel that way.
Google Python for Lisp Programmers by Peter Norvig, it's a pretty interesting read, even if not -completely- accurate.
@Colstonewall actually its not that simple. Python cannot do let, or to be more precise cannot do local variables outside a function. Let defines a local variable without the need of let being inside a function definition. Python cannot do a ton of things that lisp can and that is why its so easy to learn and use it, but then its also nowhere near as powerful. And of course lisp does not stop you from doing python kind of syntax, there is clPython. Anything in lisp can be modified.
How would one define a predicate, say SYMBOLP or EVENP?
animeisart1 2 weeks ago
Functions are FUN! LOL
Colstonewall 3 months ago
WOW, all that just to declare two variables and add them, LOL! It's amazing how simplistic Python's syntax is compared to most languages. . .Anyways, I'm not complaining, just an observation. And THANKS for this great tutorial. I hope you keep 'em coming, cause I want to learn LISP next. . .
Colstonewall 3 months ago
@Colstonewall Haha, in most lisp languages a common trait is that you avoid using variables as often as possible, and the relative uglyness of a 'let' kind of forces you to do so, or at least, I feel that way.
Google Python for Lisp Programmers by Peter Norvig, it's a pretty interesting read, even if not -completely- accurate.
inzanozulu 3 months ago
@Colstonewall Technically, what you mean is that common lisp has complex semantics, and a simple syntax. Python is the other way around.
Ehal256 3 months ago
@Colstonewall actually its not that simple. Python cannot do let, or to be more precise cannot do local variables outside a function. Let defines a local variable without the need of let being inside a function definition. Python cannot do a ton of things that lisp can and that is why its so easy to learn and use it, but then its also nowhere near as powerful. And of course lisp does not stop you from doing python kind of syntax, there is clPython. Anything in lisp can be modified.
thekilon 1 month ago
now I can read it lol
thank you very much
ReKardooo1 5 months ago