3 ms·
The Number Guessing Game Written in YAML as Lisp Interpreted with Python
- jinwoo68 5y agoIn the last section, the author is wrong about `cadr`. It should be `cdr` that means “the rest of the list”. `cadr` is for the second element of the list.
- bascodes 5y agoThanks for the hint. You're right, I've changed that!
- wizzwizz4 5y agoI don't think this is very good, because you have stuff like `ifeq`, and `what` sometimes introduces code, sometimes introduces data, and sometimes introduces keywords. I've tried to make languages like this before, and they've all looked beautiful to me… and incomprehensible to everybody I've shown them to. And also incomprehensible to future me, in a way that even languages I don't know aren't. If you think your students will have trouble with syntax, try giving them a BASIC or a graphical language (Blender, Scratch, etc.) to start with. Or give them a language with good error messages. To make a simple language, you need to start with simple principles, and strictly generalise them. If the result isn't clear and easy, you need to change the fundamental principles and pretty much start all over again. I think this idea has promise, but you'll probably need to make your own language for it, instead of trying to shoe-horn LISP's names and idioms into it.
- spicybright 5y agoCrimes against programming aside, I love these sorts of things! Have you worked on anything else that's quirky like this?
- pjdkoch 5y agoThis is an abomination I'd love and nurture. <3
- vegai_ 5y agoDelightfully evil <3