coming from lisp, "null" makes more sense as a function than a macro. The problem is that we are not comfortable including system-defined functions in user scripts.
Parenscript function inlining would solve this problem for simple functions like "null". We could define null as a Parenscript function and have it expand similarly to the macro version. In the mean time, a null macro is fine.
Red
Done. This is now in libs/js-utils.lisp.
Vladimir
On 7/31/07, Daniel Gackle <danielgackle@gmail.com> wrote:
> Can't find anything in Parenscript to do this... should we add it?
>
> (defpsmacro null (x)
> `(= ,x nil))
>
> Daniel
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel@common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
>
_______________________________________________
parenscript-devel mailing list
parenscript-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel