[fpc-pascal] Re: Delphi's anonymous functions in Free Pascal
Arioch
AriochThe at gmail.com
Thu Aug 30 10:18:31 CEST 2012
tcoq wrote
>
> a laziness to software design: what you can't name you actually don't
> design...
>
Guess you meant "don't want to" instead of "can't"
And You mean all the non-named arrays, don't you.
"var x: array[0..10] of integer; " is not only violating Pascal Report, but
also is twice lazy.
since one should name every part of design one should type like
type
SomeEnumSemanticName = 0..10;
SomeEnumMapSemanticName = array[SomeEnumSemanticName] of integer;
var x: SomeEnumMapSemanticName;
That has a point, for self-documenting if nothing else. But i don't believe
it is practically that pervasive as your stated maxima would assume.
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Delphi-s-anonymous-functions-in-Free-Pascal-tp4911527p5711056.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list