On Sep 21, 3:53 pm, Jason Grout <[email protected]> wrote:
>
> Or we might do something like:
>
> if the lowercased characters before a single colon comprise between 3
> and 4 of the letters in "sage", and it's not "sage: ", then flag a
> possible error.
>
> Or something like a regexp like the following:
>
> ^[ ]*[SAGEsage]{3,5}:
>
> I'm all for making people's jobs easier by automating things and
> catching typos, even if we don't catch everything.

But I don't think we should try to be too clever.  For instance, what
if someone *wants* "SGA:" in a docstring?  Can we envision a situation
where someone would want to use "Sage:"?  We might end up shooting
ourselves in the foot if we try to catch too many possible "typos".

  John

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

Reply via email to