[Pas2js] Prefix_&_support
Michael Van Canneyt
michael at freepascal.org
Tue May 15 17:09:20 CEST 2018
On Tue, 15 May 2018, Mattias Gaertner wrote:
> On Tue, 15 May 2018 16:37:06 +0200
> Ondrej Pokorny <lazarus at kluug.net> wrote:
>
>> On 15.05.2018 14:25, Michael Van Canneyt wrote:
>> > As said, I consider it a matter of preference. It's not because a
>> > certain technology exists that you must use it.
>>
>> Yes, of course, everybody is free to reinvent a standardized technology
>> into a slightly different technology that does the same in a worse way.
>
> Ehm, the _ existed before the &.
> All tools support the _, but not all tools support the &.
>
> If the & could be omitted after a dot, then the & syntax would have a
> benefit.
If we're speaking of benefits: if Embarcadero had wanted to do something useful,
they could have introduced quoted indentifiers as in SQL:
My."Identifier with spaces and - other - weird characters".SomeMethod()
and this could then have been used to allow keywods as identifiers as well.
Not that I would personally use them, but at least it would make more sense and be in
line with e.g. SQL.
Michael.
More information about the Pas2js
mailing list