[fpc-devel] Declare variables inside the code
Flávio Etrusco
flavio.etrusco at gmail.com
Wed May 11 18:48:40 CEST 2011
On Tue, May 10, 2011 at 1:26 PM, kingbizugo at gmail.com
<kingbizugo at gmail.com> wrote:
> I have been playing on other languages sometimes and I see some features
> that speed-up a lot the code creating. I'm posting here one, I want to see
> what you think about it.
>
> Good: fast algorithm testings, code creating
> Bad?: not a standard of the pascal language
>
I'd love that, not for the coding speed argument, but for the
maintenance argument: reducing escope thus reducing chances of error.
But what I'd like the most is a compilation mode where parameters (or
even local variables) are 'const' (or write-once) by default :-)
Enforcing explicit declaration of every field, class or global used in
a function would be nice too ;-)
But please don't tell to use ADA or the new RedHat language :-D
Best regards,
Flávio
More information about the fpc-devel
mailing list