[fpc-devel] Re: [fpc-l] type discussion
    Marc Weustink 
    marc.weustink at cuperus.nl
       
    Fri Jun  3 12:18:42 CEST 2005
    
    
  
Jamie McCracken wrote:
[snip]
>would become under Rad Pascal:
>
>uses
>   Classes, SysUtils;
>
>  TMyObject = class (Tobject)
>     private
>         count : integer;
>     public
>         constructor create; override;
>	    inherited Create(AnOwner);
>	    inc (count);
>
>         destructor destroy; override;
>	    inherited Destroy;
>
>
>Notice its at least 50% less code to write.
Hmm.... less to write... and maintain ?
Go for example to the lazarus project and try to write the controls.pp
unit  this way. Do you still think it is a good idea ? When all code is
put in the class header itself, can you still tell what methods a class
has ?
Besides, when we are at Lazarus (or Delphi), when you have typed
  TMyObject = class (Tobject)
     private
       count : integer;
     public
       constructor create; override;
       destructor destroy; override;
  end;
and press ctrl+shift+c it will generate the whole body. Which is already
less typing :)
You have to type even less if you start with
  classf
and then press ctrl+j
So what is the point to make the language less clear, while there tools
exist which do most of the annoying typing for you ?
Marc
    
    
More information about the fpc-devel
mailing list