Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-08

Re: ++ and -- ( and +=, -=, ...)

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Guillermo Martínez

Hi felow pascaloids,

I know I'm out the discussion, but I don't understand why Pascal should include stuff from other languages that doesn't fit the "spirit" of Pascal, as readability (and no, "++" isn't more readable). I mean, if you like a structure, syntax or behavior from C, then use C. I do it sometimes; for example when I should do something low-level I feel myself more comfortable using C than Pascal. Of course, the language should evolve, and it did with Objects and Classes, and later with Generics and For-In loops (I don't like this latest addition but only because I had a lot of bad experiences when I programmed in C++) but I think FPC cannot admit anything just because another language has it.

These are my two cents.

Regards
Guillermo "Ñuño" Martínez.

kyan
to Guillermo Martínez

Somehow relevant, has someone thought of turning Inc()/Dec() into functions that return the modified value -like the Interlocked ones? I think this would cover some of the cases discussed in a more "pascalish" notation.Also, Include()/Exclude() could similarly be turned into functions.

Constantine Yannakopoulos