#17958: implement declare_var, deprecate (None)var
-----------------------------+------------------------
       Reporter:  rws        |        Owner:
           Type:  defect     |       Status:  new
       Priority:  major      |    Milestone:  sage-6.6
      Component:  symbolics  |   Resolution:
       Keywords:             |    Merged in:
        Authors:             |    Reviewers:
Report Upstream:  N/A        |  Work issues:
         Branch:             |       Commit:
   Dependencies:             |     Stopgaps:
-----------------------------+------------------------

Comment (by tmonteil):

 `declare_var` sounds like ''varibale declaration'' that exists in many
 languages and is completely different that what is done here. There is
 already a lot of newcomer's code that start with

 {{{
 var('a')
 a=2
 }}}

 So i can imagine how much more there will be with `declare_var`, since it
 will add confusion to programmers too.

 What is currently discussed is a function that injects a symbol into the
 namespace, so `inject_symbol` sounds more meaningful as it just tells what
 is actually done.

 As for the `Symbolic Ring`, it is perhaps better not to know what a
 mathematical ring is, so perhaps thinking about that object as `The Lord
 of the Rings` is not so bad. We do not have much "calculus" course in
 France so i can not tell much about the benefits of playing with objects
 we are not able to define, i can just witness from what i see on
 ask.sagemath.org that people get more lost by lack of clear definitions
 than by excess (e.g. how to factor a polynomial if we do not know on which
 ring it is defined?).

 I agree that in any case, both injecting and returning is harmful
 (`function` does that too).

--
Ticket URL: <http://trac.sagemath.org/ticket/17958#comment:26>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to