The commercial Macsyma produces an error for both op and args of an atom.
Since code which can pass in non op expressions needs to check for this,
returning false is probably ok. However it will break code which is
catching
an error. It would be nice if there was some way to find places which were
translated into lisp, or perhaps compiled to help those without source.
Dan Stanger
Robert Dodier wrote:
> Hello,
>
> At present the functions op and args barf on atoms.
> I propose that op and args return false when the argument is an atom.
>
> This change is intended to obviate the need to always test whether
> the argument is an atom before calling op or args.
>
> I looked at the commercial Macsyma documentation, but it didn't
> say what op and args do when the argument is an atom.
>
> Comments?
>
> Robert Dodier
>