[fpc-devel] type discussion
Micha Nelissen
micha at neli.hopto.org
Thu Jun 2 16:16:10 CEST 2005
On Thu, 02 Jun 2005 14:52:13 +0100
Jamie McCracken <jamie-junk at blueyonder.co.uk> wrote:
> > C# is very much like delphi, not at all like Python. What were their
> > reasons to switch ?
>
> Because its so close to Delphi and they have switched because they
> found it more productive. No forward declarations, garbage collection
I don't understand, why are these forward declarations so evil ?
Garbage collection is largely no issue when using the Owner concept in TComponent, using TObjectList, etc.
> and a richer framework has made them switch to the dark side. We need
> to fight back!
Ok, but richer framework simply needs people adding packages and useful units to freepascal :-).
> > Python is hard to read, especially if multiple blocks are closed at
> > once, then it's hard to see what block a line belongs to (because of
> > missing 'end' or '}').
>
> not true because of the indenting (use bigger indents!). Im not saying
Bigger indents cause the text to go too wide. More functions also help, I agree.
> python is great I just envy *some* of its shorter syntax and it would
Ok, some, but not this one ?
> > I also don't like the magic. For example the 'mystrings.create;'
> > example you mentioned, it's *totally* not consistent with regular
> > syntax: mystrings.create means call "TStringList.Create" on the
> > object pointed to by the mystrings variable.
>
> Well pascal in the only mainstream langugae that does that - I dont
> see the pont and it aint magic.
Sorry, the only language that does what ?
Micha
More information about the fpc-devel
mailing list