On 22/11/2011 13:23, Rainer Stratmann wrote:
Am Tuesday 22 November 2011 13:50:06 schrieb John Lee:
Call me old fashioned, but to ask for this capability to save typing seems
bizarre.
There are many functions I don't need. For example am I not a friend of
dynamic allocated memory.
I have reasons for not using it.
You may have reasons for using it heavily.
Why shouldn't there exist a function you don't need or see the need for?

I don't think the question is that simple.

Yes, there are many features not everybody needs. Yet they have to be chosen by some means (language design) and yet there will always be disagreement.

But remember each feature has a cost. Not only what it adds to your app (which it may well be worth), but also what it adds to the compiler: Now and in future maintenance.

And are you sure this feature is really that simple? Now and in all future?

Now it may just be an: check (for existence as var) and quote the literal identifier. But soon you or someone wants to pass a pointer to a variable, and that will raise the cost a lot.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to