GnuCash 1.8.1-4 and RedHat 9: Error in main.scm
Derek Atkins
warlord at MIT.EDU
Fri Apr 11 13:25:45 CDT 2003
"John W. Eaton" <jwe at bevo.che.wisc.edu> writes:
> On 11-Apr-2003, Derek Atkins <warlord at MIT.EDU> wrote:
>
> | The problem with guile (or any interpretted language) is that you
> | don't know you have problems with the code until you actually try to
> | execute that particular line of code. It's not like C where you can
> | get compile-time warnings of syntax errors. So it makes it very
> | difficult to find simple syntax errors like this one (well, it's a
> | syntax error in guile-1.6, not in earlier guiles).
>
> There should be some way to force the interpreter to read the code and
> at least verify that the syntax is OK. Probably loading it is enough
> to get guile to do that. It won't catch errors in program logic, but
> neither will compiling C code.
Negative. It wont tell you if, say, you have the wrong number of
arguments to a procedure, or the wrong type of arguments, until the
code is executed.
Gross syntax errors, like missing parens, are certainly caught by
loading the file.. But that's not sufficient (and sorry, I don't
consider the wrong number of arguments to be an error in program
logic).
> jwe
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-user
mailing list