Re: buggy 4.0 program
- Posted by DerekParnell (admin) Dec 11, 2008
- 1620 views
m_sabal said...
When I look at the error about a missing identifier, I think, "Oh, puts must now be a function." When I see an error about "a is not defined", I think, "Oops, I forgot to put a type in front of a." The power of Euphoria is that the error reported very clearly told me where the problem was, making it very quick to fix.
The art of error reporting is difficult. Consider ...
---- integer a . . . lots of code . . . a puts(1, "test) -----
Now 'a' is not missing. What should the error message be?
m_sabal said...
I'm glad some kind of compile-time error is being generated; but I'd rather not go back to the bad old days of C where an error on line 400 could mean a bug in line 25.
And in this case it isn't. The error message is very local to the site of the error.