[sdiy] OT: questions on TYPEDEF STRUCT

Jerry Gray-Eskue jerryge at cableone.net
Fri May 6 18:06:02 CEST 2011


As long as you are not "keystroke wise and debug foolish", using longer
names that clarify the code are worthwhile, debugging code that is not
clearly written can eat a lot of time.

Just my 2 cents

- Jerry

-----Original Message-----
From: synth-diy-bounces at dropmix.xs4all.nl
[mailto:synth-diy-bounces at dropmix.xs4all.nl] On Behalf Of Neil Johnson
Sent: Friday, May 06, 2011 10:27 AM
To: dan snazelle
Cc: Synth-Diy diy
Subject: Re: [sdiy] OT: questions on TYPEDEF STRUCT

Hi Dan,

> typedef struct time newTime
>
> and then you use newTime instead of the struct time .
>
>
> WHY?
>
> Why is this better, etc..there must be problems with struct, right?

Yeah - it takes more letters to type.  That's the reason.  Compare:

   struct time t;

and

   newTime t;

Both do the same thing, but the latter saves typing 4 characters.

Time is money!!!!

Cheers,
Neil
-- 
http://www.njohnson.co.uk
_______________________________________________
Synth-diy mailing list
Synth-diy at dropmix.xs4all.nl
http://dropmix.xs4all.nl/mailman/listinfo/synth-diy




More information about the Synth-diy mailing list