#14248: Add case sensitive to global options
------------------------------------+---------------------------------------
       Reporter:  tscrim            |         Owner:  sage-combinat
           Type:  enhancement       |        Status:  needs_review 
       Priority:  major             |     Milestone:  sage-5.9     
      Component:  misc              |    Resolution:               
       Keywords:  global options    |   Work issues:               
Report Upstream:  N/A               |     Reviewers:               
        Authors:  Travis Scrimshaw  |     Merged in:               
   Dependencies:  #13605            |      Stopgaps:               
------------------------------------+---------------------------------------

Comment (by andrew.mathas):

 Replying to [comment:8 nbruin]:
 > Would it be too painful to make "keep as is" the default? All of python,
 and in particular string matching, is normally fully case sensitive. It
 feels very strange that this is not, even if it might be considered
 convenient by some.

 No, it would be painful. In fact this is what is being suggested above.

 > In particular, by the time someone is setting options he/she is a stage
 beyond "beginner" and they'll have to look up the name of the option
 anyway, so I don't think in practice the convenience will really matter.
 >
 > In most of python, ambiguity about case is removed by preferring all-
 lower-case. (I know, singletons `True`, `False`, `None` oddly deviate from
 that)

 This is what is currently done.

 > Incidentally, the need for options has a code smell to me: I'd start to
 look for a design flaw if I felt the need to introduce one.

 Disagree on this one - I guess you don't use bashrc files etc?

 I think that options are useful for either reflecting user preferences
 (for example, changing how something is displayed, often corresponding to
 different conventions in the literature), or for controlling parameters to
 a class (for example, see  the options used in #13131 - which isn't using
 GlobalOptions, but could).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14248#comment:9>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to