Search
Friday, 27th of January 2023, 22:24:56 UTC
22:25:29
jasom
I was also pleasantly surprised to see that at least simple closing-over of go tags works; e.g. (parenscript:ps (progn (defun foo (x) (funcall x)) (defun bar () (tagbody y (foo (lambda () (go x))) (alert "hi") x))))
22:46:21
Bike
really? that's kind of impressive
22:49:01
phoe
jasom: I can't find the tagbody function defined anywhere in ps
22:49:48
jasom
phoe: someone implemented one with macros
22:50:07
phoe
oh wait! I see your link now
22:51:36
phoe
nice, TAGBODY is implemented via CASE
22:51:49
phoe
I did the same thing for cafe-latte in java
22:53:03
phoe
...wait, no, I did not - I used Java exceptions as control flow primitives
22:53:11
phoe
this is clever-er than my solution
22:55:13
Bike
oh no, don't subject yourself to that
23:07:38
phoe
oh wait - it actually uses throw/catch in there too for control flow
23:21:17
ldb
I'm be surprised if there would be goto
23:59:43
phoe
the best js has is labeled break I think, and this one is used in there
Saturday, 28th of January 2023, 10:24:56 UTC