On 12/08/16 09:53, Ralf Hemmecke wrote:
On 08/12/2016 10:37 AM, oldk1331 wrote:
foo bar.fieldname
OT a little, I think "bar.fieldname" equals to "bar fieldname"? Then one
can still write "foo bar fieldname".
True. Semantically, it's the same. But fields are (at least in our
context) usually denoted with a dot and changing that would also be
confusing.
Well, the confusing thing for me is actually that "foo bar" is a prefix
notation of function foo applied to bar, whereas I consider
bar.fieldname somewhat like applying the "function" fieldname to the
variable bar instead of seeing this as a function bar applied to the
constant "fieldname. So bar.fieldname looks to me like a postfix
notation (although as you show with "foo bar fieldname" it actually is
the more like the other view of applying bar to the constant "fieldname".)
I thought another difference is that one associates to the left and the
other to the right?
foo bar fieldname = foo(bar(fieldname))
foo.bar.fieldname = (foo.bar).fieldname
At least that seems to be the case in Aldor where syntax is more
precisely defined.
Martin B
--
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.