#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 nbruin):
Replying to [comment:47 vbraun]:
> The var docstring (`var?`) contains
> {{{
> Note: The new variable is both returned and automatically
> injected into the global namespace. If you need symbolic variable
> in library code, it is better to use either SR.var() or
> SR.symbol().
> }}}
Yes that's for use in the library. The problem with `%var` would be
feeding programmatically generated input into it. I don't think that's
currently explicitly discouraged in the documentation.
Reducing support for that would be a reduction in functionality. If the
advantages of `%var` are otherwise overwhelming we could still decide to
go that route, but it shows that the spelling with quotes does have its
advantages too.
--
Ticket URL: <http://trac.sagemath.org/ticket/17958#comment:49>
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.