On 1/25/24 22:46, Ralf Hemmecke wrote:
Hi Qian,
just a side remark...
On 1/25/24 11:36, Qian Yun wrote:
+ nu : Union(N, "failed") := trappedSpadEval(possibleOrder(d))$Lisp
Oh, trappedSpadEval $ Lisp looks like a useful function.
Sounds like a "try [CODE] catch ..." construction.
What exactly can it do?
If "exprA" gives result of typeA, then "trappedSpadEval(exprA)$Lisp"
gives type Union(typeA, "failed"). Its value takes typeA branch if
"exprA" successes without error, takes "failed" branch if "exprA"
fails with error.
Hmmmm... unfortunately it is another "foo $ Lisp" appearing in code.
Maybe that function can be put into a package in order to reduce the
"Lisp" occurrences in ordinary SPAD code.
Ralf
Maybe we can put it into a package named LispMacrosPackage.
BTW, trappedSpadEval is already used in spad files, you can search for
its usage.
- Qian
--
You received this message because you are subscribed to the Google Groups "FriCAS -
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/2331e251-7c51-4f9d-9cf9-8a05dc74dead%40gmail.com.