A few questions from a confused lisper

2018-07-12 Thread Johan Persson
Hi, list! First I'd like to say that I'm having a blast playing around with PicoLisp lately. (It only took me about seven years to get around to it!) The fact that it exists and work as well as it does is a fresh and bold counterpoint to the conventional wisdom of the current programming

Re: A few questions from a confused lisper

2018-07-12 Thread Bruno Franco
Well, for the conditional exit in the iterators (for, do, and loop), I would do something like this: (use Y (for X (1 2 3 4 5) (setq Y (mumble-mumble X)) (NIL Y (println "this does not work")) ) ) Though I'm not sure that is the most elegant way to go XD. As for the local

Re: A few questions from a confused lisper

2018-07-12 Thread Bruno Franco
actually, you could just put the function (mumble-mumble X) in the place of Y: (for X (1 2 3 4 5) (NIL (mumble-mumble X) (println "this does not work")) ) On Thu, Jul 12, 2018 at 9:27 PM Bruno Franco wrote: > Well, for the conditional exit in the iterators (for, do, and loop), > I

Re: A few questions from a confused lisper

2018-07-12 Thread Alexander Burger
Hi Johan, > First off, I'm confused about what the correct way of doing local exits. > There's no "return" or "return-from" -- instead the closest thing I've found > is "quit", which is sort of akin to "error" in CL Correct. There is no 'return' function jumping directly out of a nested