[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enable truncation of exception output
From: |
Daniel Llorens |
Subject: |
Re: Enable truncation of exception output |
Date: |
Fri, 10 Mar 2017 10:12:23 +0100 |
On 10 Mar 2017, at 09:47, Andy Wingo <address@hidden> wrote:
> I have a crazy idea :) What about, we just let (ice-9 format) be
> "format" ? Right now loading (ice-9 format) does a set! to format, as
> you know, overriding the core binding. This is unnecessary and
> complicated. I see that using (ice-9 format) only adds 50 KB to the
> 2828-KB baseline of private dirty memory. Then we can use :@y
> directly in the format strings and we can avoid all the monkeypatching.
This change would make things simpler, but it wouldn't solve the problem we
had. Sometimes you want the full error printed out and sometimes you do not.
It's a decision that should be made in ~/.guile or at the REPL or at the call
site, not when you code the scm_error call.
Daniel