Re: 1 pass?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Alan Tu wrote:

>On the other hand, define-it-before-use is something that I
>appreciate.  Do you not believe it is logical?  If I have an error, I
>can say "oh, the error happened here.  The error happened in previous
>lines of code".  If our brains had our way, the error would be limited
>to the whole code.  1 pass lets you know you have a good program until
>the error.

You, guys, drive me nuts: everybody's talking, nobody is thinking,
nobody's listening. I'll say it again (for the last time, I promise):
as far as error reporting is concerned, *nothing* would change. You
would get exactly the same message "xyz has not been declared, line
nnn" (or whatever it is) as you get it now, when you forget to declare
your variables or to include your includes or to define your routines.
So if you are foolish enough, you can still believe your program is ok
up to that point smile.

But on the other hand, you would gain the freedom to organize your
program in a way best suited to your way of thinking. Obviously, it
does not matter for short, trivial programs, but it could make a huge
difference for bigger, complex projects. Trust me. Jiri

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu