Hacker News new | past | comments | ask | show | jobs | submit login

Yea...it uses "de" to define a function instead of "defun". People always hate on it for no macros, but macros don't make since when you only have an interpreter. I don't fully understand how, but I've heard people in the past explain how they're irrelevant in Picolisp and how you can still extend the syntax with standard functions somehow. Maybe a picolisper could give some examples?

Shout out that there are two free online books on Picolisp.




You dont need macros as you have fexpr's which don't evaluate it's arguments. It fits much better into the language, and they are first class. See https://picolisp.com/wiki/?prosandcons

And https://software-lab.de/doc/refM.html#macro for the usage of macros.

More importantly it doesn't need lambda, just lists, and quote quotes all arguments not just the first one. An extremely simple and small lisp-1 interpreter, comparable to the old AutoLISP.


The wiki [0] explains fairly clearly why traditional macros can't be done, but also why Picolisp can still be as flexible.

The backtick, tilde, and def operators allow you access to the reader, and something akin to macro expansion.

You have the reader accessible, you can rewrite anything. It might just be more verbose.

[0] https://picolisp.com/wiki/?macros




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: