Allows the use of part of the language keywords?
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Sat Aug 27 19:35:57 PDT 2016
On Saturday, 27 August 2016 at 20:45:56 UTC, Meta wrote:
> On Saturday, 27 August 2016 at 19:21:52 UTC, Walter Bright
> wrote:
>> It also:
>>
>> 1. mucks with the usability of syntax highlighting, which is
>> often based merely on tokens.
>> 2. makes it potentially much more difficult to add features to
>> the language, which is often done by finding new uses for the
>> same keywords
>> 3. is just plain confusing to the person learning the language
>> 4. makes correctly diagnosing syntactic errors harder
>>
>> There are a million words in the english language. Having a
>> handful of reserved words should not be a burden.
>
> Could we at least make body a contextual keyword? It's a
> commonly used word in many different areas.
YEAH! PLEASE-PLEASE-PLEASE-PLEASE! i did that, and it never broke
anything for years. as for syntax highlighters -- it's not too
hard to check if `body` is followed by `{`. but getting our
precious `body` back will be invaluable!
More information about the Digitalmars-d
mailing list