in reply to Declaring Subroutines

I don't have the third edition of the camel, but I don't declare my subroutines and I prefer throwing on the parentheses.

In fact I don't like dealing with code where the declaration is separate from the function. Doesn't look good to my eyes.

Replies are listed 'Best First'.
Re: Re (tilly) 1: Declaring Subroutines
by the_0ne (Pilgrim) on Apr 24, 2001 at 17:05 UTC
    Agree fully with you tilly. I like throwing on the parenthesis, makes it easier to read. I never understood why you would have to declare the subroutines either. In C, before the C++ days, it was so ugly to have a huge list of prototypes at the top of your source that looked exactly like the subroutine call without the block of code. Never understood it when I would think that the subroutine call itself is a great declaration.