guile-user
[Top][All Lists]
Advanced

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

Re: default stack size


From: Neil Jerram
Subject: Re: default stack size
Date: 06 Sep 2003 15:23:17 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Joshua" == Joshua Judson Rosen <address@hidden> writes:

    Joshua> Tangentially: are you sure that you meant "t" here, and not "#t"?

    Joshua> t -is- bound to 't, in guile, while -is- true due to Scheme's `all
    Joshua> things other than #f are true' rule, but the canonical booleans in
    Joshua> Scheme, unlike in other most lisps, are #t and #f, not t and nil; in
    Joshua> fact, nil (which is bound to 'nil) is also `true', in 
guile/scheme....

Good spot; note that it won't be true in 1.8 that t and nil are bound
like this, so it's unwise to write new code that relies on this.

    Joshua> (I recall someone (either Marius or Mikael, I -think-) saying that 
the
    Joshua> stack-limit was `to be friendly to newbie programmers', because
    Joshua> newbies are likely to write infinitely-recursive routines and would
    Joshua> like prefer to have them fail sooner rather than later)

Remember, also, that you can easily increase the stack size.  Do `i
stack' in the manual to see how.

        Neil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]