[fpc-devel] space char inside identifier's name

Michael Van Canneyt michael at freepascal.org
Sat Mar 25 13:37:11 CET 2006



On Sat, 25 Mar 2006, Bisma Jayadi wrote:

> After trying out Morfix for some hours, I found very interesting "feature" of
> the implemented object Pascal language. Morfix Pascal allows space char within
> the identifier's name. If space char is used, then the name MUST BE enclosed
> within a double-quote char pair. Here are some examples:
>
> type "Main Form": TForm;
> var "this is a integer variable": integer;
> if "Main Form".Left = 10 then ...
> procedure "Main Form"."Edit Change"(Event: TDOMEvent);
>
> I think this is a interesting feature to be supported. Though this is not too
> essential, but sometimes it is required or demanded. At least if we want FPC
> more Morfix "compatible". I know it looks more VB-ish or MS-ish, but if it is
> good, why not? :)

In my personal opinion:

It is not good. It's a totally useless "feature". It has no additional value,
because end users are not confronted with it anyway, and programmers should
know better than to use spaces in identifiers. It makes code harder to read,
at best.

Michael.



More information about the fpc-devel mailing list