Arc Forumnew | comments | leaders | submitlogin
2 points by cooldude127 6093 days ago | link | parent

mainly, we need an apply that works for macros. why would that not be possible, i wonder.


5 points by pg 6093 days ago | link

What you're thinking of can be done, but only by calling eval explicitly. I.e. what you could do thus with or if it were a function:

  (apply or args)
you have to do thus with the real or, which is a macro:

  (eval (cons or args))
This is not surprising, because macros live in the world of expressions, not values.

-----

3 points by aston 6093 days ago | link

What you mean is, we need macros to be first class.

-----

1 point by absz 6093 days ago | link

Yes, we do. But if I recall (and I can't test, because the git "wiki" broke for later mzschemes again), apply does work for macros, except it evaluates all the arguments first, which breaks things like and. Someone should test that, though; as I noted, I can't.

EDIT: No, sorry. It doesn't work. My bad.

-----

4 points by nex3 6093 days ago | link

Just as a note, the wiki is fixed now.

-----

1 point by absz 6093 days ago | link

I saw, that's how I was able to test. Thank you for setting it up, by the way! And if you fixed it, thank you for that; if someone else did, thank them for that.

-----

3 points by nex3 6093 days ago | link

You're welcome :-). It would be wfarr who fixed this issue, though.

-----

1 point by cooldude127 6093 days ago | link

well, yeah. basically.

-----