[fpc-devel] Pascal Standard, and what we can do.
freedos.la at gmail.com
Fri Jul 24 01:14:44 CEST 2015
On 7/23/2015 12:21 AM, Michael Van Canneyt wrote:
> Oxygene is no longer pascal. It's just C# with pascal keywords. a
> pityful copy.
> If you want the features of C#, you should use C#, full stop.
Exactly! I was first wondering if this would be a "proper" Pascal
implementation to be used on top of .NET, but there is likely a reason
why it isn't any longer part of Embarcadero's RAD Studio suite.
> Regarding inline declarations:
> Pascal is about bringing clear structure in your code. Plan first,
> code then.
> From this point of view there is no need for inline variable
That is what a lot of people that never really learned Pascal don't
understand. And a lot of folks in "the industry" don't care about
properly planned/designed software, just get "something" out fast, and
deal with the problems later (aka "constant delivery")
> Also, the location of variables is entirely irrelevant with an IDE
> like Lazarus.
> Press ctrl-c on a variable and Lazarus inserts it in the correct
> location, *as required by the language*. It is exactly because the
> Pascal language is so structured that Lazarus *can* do it.
> So: People who think they *need* inline variable declarations need in
> the first place to use another language than pascal or use a better IDE.
Pascal is much better in properly handling the scope of variables,
giving you much better separation of local and global variables that
most other programming languages. Just do it properly, without taking a
"temporary" shortcut and you can eliminate a lot of potential problems
in the future..
> It is just a wish of people who think that 'anything goes', it has
> nothing to do with being more productive or being modern.
This email has been checked for viruses by Avast antivirus software.
More information about the fpc-devel