[fpc-devel] Proof of Concept ARC implementation

Boian Mitov mitov at mitov.com
Mon Oct 27 21:55:06 CET 2014


Well... since attributes can be implemented in compiler extending library, 
then attributes can be enabled/disabled just by adding a unit ;-) .
That can't be said for new keywords.
I think library extension of the compiler is a better option that having a 
bunch of switch directives.
This also allows users easily to customize the compiler for their needs.
Now I know the concept for compiler being expanded/modified via library is 
probably a new one, but .NET already has introduced elements of this years 
ago, and seems to work well for them ;-) .

With best regards,
Boian Mitov

-------------------------------------------------------
Mitov Software
www.mitov.com
-------------------------------------------------------
-----Original Message----- 
From: Marco van de Voort
Sent: Monday, October 27, 2014 1:42 PM
To: FPC developers' list
Subject: Re: [fpc-devel] Proof of Concept ARC implementation

In our previous episode, Boian Mitov said:
> Except attributes can't be confused with variables ;-).

The variables can't be confused with attributes.

Attributes are only useful in addition to an established languages, and as
extensions/implementation specific parts (so that the simpler parsers can
afford to ignore them).

As soon as you have two equal implementations like Delphi and FPC adding to
them independently, you are back to square one.

> And the other benefit I did not mentioned earlier, a lot of the attributes
> (if not all) can actually be implemented as compiler extending libraries 
> ;-)

The only advantage of attributes is that you can skip unknown ones at the
expense of terser syntax.
_______________________________________________
fpc-devel maillist  -  fpc-devel at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel 




More information about the fpc-devel mailing list