- Uppercase Keywords (was BB: The future: Is there one?)

From: Bob Walkden <"Bob>
Date: Sun, 21 May 2006 16:19:22 +0100

----boundary-LibPST-iamunique-1860692743_-_-
Content-type: text/plain

>
> Since my earlier reply I've carried out a few tests and decided that a
> non-discriminating keyword convertor is not such a good idea
> after all.
> I used it on a random sample of half-a-dozen Component Pascal source
> code examples written by different authors and compared the conversion
> with the original. They should have been identical. However, that was
> not the case as they all happen to make use of lower-case
> equivalents of
> keywords as valid identifiers, e.g. 'type', 'mod', 'size' and
> 'of'. Time
> taken fixing up the mistakenly converted identifiers negates any
> advantage of the tool.
>
> A simpler less-automatic solution is a case-conversion 'hotkey' which
> just converts the current selected word. I think you'll find such a
> function in Fyodor Tkachov's Epse21 project in Helmut Zinn's Component
> Pascal Collection:
>
> http://www.zinnamturm.de/
>


I've never had an issue with uppercase keywords - it doesn't strike me as
particularly important either way. However, if one were to include automatic
uppercasing in the editor I should think it ought to be syntax-directed, and
convert only the keywords that are in the expected place in the text. The
conversion should take place when the programmer enters the separator, such
as space, ';', end-of-text and so on.

It's not something I would like though. I've always hated syntax-directed
editors - they're just another version of Clippy.

Bob

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-1860692743_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZG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
ciB2ZXJzaW9uIG9mIENsaXBweS5ccGFyDQpccGFyDQpCb2JccGFyDQpccGFyDQotLS0gQmxhY2tC
b3hccGFyDQotLS0gc2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJTQ1JJQkUgdG8gYmxhY2tib3hA
b2Jlcm9uLmNoXHBhcg0KfX0AEgAAAA==


----boundary-LibPST-iamunique-1860692743_-_---
Received on Sun May 21 2006 - 17:19:22 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:59 UTC