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
lang
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 exit
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 w
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
structure