[ESS-bugs] Font lock bugs in R mode

Martin Maechler maechler at stat.math.ethz.ch
Mon Feb 20 22:24:38 CET 2006


>>>>> "tony" == A J Rossini <blindglobe at gmail.com>
>>>>>     on Sun, 12 Feb 2006 12:22:59 +0100 writes:

    tony> I definitely agree with the bugs you raise for #2 and
    tony> on, about warning messages.

so do I; and thank you for the patches;
I won't get time to look at them for the next several days, though.

    tony> However, with respect to #1, from the R help page for
    tony> "T":

    tony>      'TRUE' and 'FALSE' are part of the R language,
    tony> where 'T' and 'F' are global variables set to
    tony> these. All four are 'logical(1)' vectors.

    tony> and from a stylistic/good-programming practice, it's
    tony> the language features that we are trying to highlight.
    tony> I believe that T/F have been proposed for deprecation
    tony> quite a few times, but are kept only for legacy code.
    tony> In addition, there are at least 2 people in ESS-core
    tony> that feel very strongly about the use of T and F.
    tony> That being said, we'd probably take patches which
    tony> accept a flagged version (i.e. for example,
    tony> conditional on a variable,
    tony> ess-highlight-silly-T-F-abbreviations, or similarly
    tony> named).

as one of the two "feeling strongly" : I'm even strongly against
providing this non-feature !
It would encourage "wrong" R programming, and we definitely
don't want this!   I even know of someone who learned to use
TRUE/FALSE  just because ESS stopped to (wrongly) highlight T/F
in R-mode !

    tony> I'm assuming that you are referring to R, and not S or
    tony> S-PLUS.

Indeed;  they are still highlighted in *.S files

Martin




More information about the ESS-bugs mailing list