> "return" is not a function, so parenthesis are not appropriate
> here.  "error" while theoretically a function also is quite
> special.   In other cases my main point is clarity: sometimes
> omiting parenthesis may cause confusion.  Instead of thinking
> when confusion is possible I prefer to liberally use
> parenthesis.  In particular compilcated expression have
> more need for parenthesis than simple ones.  And composition
> falls into complicated group, so more need for parenthesis.
>
> --
>                               Waldek Hebisch

So error, return, if, for, etc don't use parenthesis.
Simple condition like single argument function application
should use spaces?

For the composition case, FYI, Haskell and Mathematica invent
something like "$" infix operator:
  a $ b $ c $ x
Equals to a(b(c(x))),
In Fricas, I'd like to write "a b c x".

They use this $ to avoid nesting parenthesis, I think.  And I'm typing
from a phone, I definitely prefer the space style.

And like I said before, only use this space notation in one-argument
function composition situation, for function composition involves more
than 2 arguments, use parenthesis.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to