Re: A Lisp programmer walks into a room
Lassi Kortela 15 Sep 2020 22:44 UTC
> The downside is that these are (no longer funny) :-)
>
> Or (too few laughs), in your language.
Intercal had a feature where you had to type "please" every now and then
to appease the compiler, but if you typed it too many times it was
annoyed. We should take advantage of Lisp's interactive programming
features and make a finicky REPL that occasionally refuses commands it
doesn't like, replying with a short retort. And when a recursion goes
too deep, it should groan about having to work so hard.
> (+ 1 2 3)
Bah!
> (please (+ 1 2 3))
Really?
> (please (please (+ 1 2 3))
OK, 6.
> (factorial 50)
Pay?
> (pay 40)
Thanks.
> (factorial 50)
Pay more.
> (please (please (please (please (factorial 50)))))
Oh well... 30414093201713378043612608166064768844377641568960512000000000000
I hope you're happy. And pay double for the next factorial.
> (fibonacci 1000)
OK, let's see. What... wait... what...? Stop wasting my time.
> (please (delete-file "/"))
Surely you jest.