[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

Re: (techy) Code specs?

> The current ZigZag code is messy to -look- at.  

I don't really have time to discuss this in detail just now, but:

> Some but not all of the functions use prototypes. 

I honestly do not understand what the prototypes are there for anyway.

I imagine that someone put them there because they thought that they
were going to get better argument type checking, because that is why
other languages have prototypes.  But that is not what Perl prototypes
are there fore.  Perl prototypes do not provide better argmuent type
checking.  Instead, they are there so that you can emulate the
behavior of the Perl internal functions.

Also, most function calls use the `&f' form, and that form disables
the prototype checking anyway.

>  Ditto trailing brackets for functions with no arguments.

>> PS
>    prototypes suck

Prototypes suck.