Arc Forumnew | comments | leaders | submitlogin
1 point by absz 5548 days ago | link | parent

As I observed above (http://arclanguage.org/item?id=10528), table can't do this (unless we rotate names around, which would be a perfectly valid option), but here's a lightly-tested macro (with a terrible name) which exhibits your DWIMmy behaviour:

  (mac amphi-table args
    (cons (if (<= (len args) 1) 'table 'obj) args))


2 points by proponent 5547 days ago | link

Thank you. Somehow how I missed your earlier reply.

-----

2 points by absz 5547 days ago | link

That would probably be because I made my two replies about five minutes apart :)

-----