Dear Carl,

On Dec 3, 10:14 pm, Carl Witty <[EMAIL PROTECTED]> wrote:
-- snip --
> > > Simon pointed out that there is precedence for injecting variables
> > > that appear on the left side of an equals sign, using "R.<x> = QQ[]" as an
> > > example.
>
> > > Any comments or thoughts?
>
> > I think this is very useful.
>
> I have no idea which "this" you're talking about.

Neither have I. But I do think that the current behaviour is
consistent, sufficiently simple, and likeable:
  -- All items on the left hand side of an assignment will be assigned
--

This is so in
  sage: R.<x>=QQ[]
and in
  sage: (a,b) = 3,5
and eventually also in
  sage: f(x) = sin(x)

I don't like the counterargument that "x" only is a temporary
variable, from a mathematical point of view. In a math book, I would
not define f(x)=sin(x), but I would do:
   f: RR ---> RR
        x  |->   sin(x)
in order to make clear that "x" is just a temporary notation.

Of course, funny things happen if you define
  sage: f(sin)=sin(sin)
but so is life...

Best regards,
     Simon

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to