From: Alaric Snell-Pym
Subject: Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary
expression as the message
Date: Mon, 12 Mar 2012 16:39:10 +
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 03/12/2012 02:03 PM, Felix wrote:
>
>>> Tell you w
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 03/12/2012 02:03 PM, Felix wrote:
>> Tell you what, shall I make it say (if (string? msg) msg "> assertion message was supplied>") or something like that? I'll think of
>> better wording.
>
> At run-time (I'd not recommend this, as it produces more
From: Alaric Snell-Pym
Subject: Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary
expression as the message
Date: Mon, 12 Mar 2012 12:12:20 +
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 03/12/2012 11:52 AM, Felix wrote:
>
>> In the case of
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 03/12/2012 11:52 AM, Felix wrote:
> In the case of "assert", I think it is not too much to expect the user
> to pass a string.
Tell you what, shall I make it say (if (string? msg) msg "") or something like that? I'll think of
better wording.
>
>
From: Alaric Snell-Pym
Subject: Re: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary
expression as the message
Date: Mon, 12 Mar 2012 10:21:57 +
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 03/10/2012 11:54 AM, Felix wrote:
>
>> Unfortunately
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 03/10/2012 11:54 AM, Felix wrote:
> Unfortunately "->string" might not always be available in code that uses
> the "assert" syntax. It would be nice if "assert" only depended on the
> base library.
Ah-hah! Do you have a suggestion, or shall I do m
From: Alaric Snell-Pym
Subject: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary
expression as the message
Date: Thu, 08 Mar 2012 21:11:40 +
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> ...which is evaluated at assertion failure time!
>
> I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
...which is evaluated at assertion failure time!
I undid the check that the supplied MSG is a string at expansion time,
and instead placed the string-append that combines it with the line
number into the result of expansion. For safety, I added expli