[ESS-bugs] Font lock bugs in R mode
Martin Maechler
maechler at stat.math.ethz.ch
Tue Feb 21 09:19:16 CET 2006
>>>>> "Ari" == Ari Kornfeld <ari at perspective.com>
>>>>> on Mon, 20 Feb 2006 23:09:40 -0800 writes:
Ari> First the part we all agree on. Here's some code that
Ari> illustrates the font-lock "nesting" problem on
Ari> warnings:
(no dispute here; as I said, I just don't have time for it yet,
and Tony has agreed to work on it anyway)
<................>
Ari> Now about the T/F issue. I don't feel strongly about
Ari> this but aren't you splitting hairs a bit finely? If R
Ari> is a dialect of S and some (most?) S dialects define
Ari> T/F as constants (which, I assume, is why you don't
Ari> object to treating T/F as constants in *S files), why
Ari> not treat the goose like the gander?
This is an issue, were we, R-core, have tried to teach people
that R is different and why.
And *NO* ; it's wrong or at least very bad programming practice
to use T/F instead of TRUE/FALSE in R.
ESS should help people use good programming style.
If you want T/F highlighted, use *.S files (and S-plus if you like...)
Martin
Ari> Best regards, -ari
Ari> Martin Maechler wrote:
>>>>>>> "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.
>>
>>
Ari> ....
>> 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