Arc Forumnew | comments | leaders | submitlogin
3 points by rntz 5303 days ago | link | parent

Well, Arc does have 'iflet, 'whenlet, etc (which are generalizations of 'aif, 'awhen, etc). As for why, I dunno, it just seems cleaner to me to, whenever you have an anaphoric macro, always have the corresponding explicit macro. It's more flexible if you do need or want to name your variables, it allows for nesting, etc.


3 points by zck 5302 days ago | link

I suppose that's true. And obviously, one could create awhile from whilet. But from a language design perspective, shouldn't there be the entire set of anaphoric operations?

(I was going to complain how whilet doesn't make sense, and isn't at all like iflet or whenlet, but then I realized whilet isn't "while t", it's "while-let" with the overlapping "le" compressed into "whilet". Well, chalk one up for pg et al. Cool name.)

-----