public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
From: Kevin Ryde <user42@zip.com.au>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-gtk@sources.redhat.com
Subject: Re: GError
Date: Sun, 25 May 2003 23:16:00 -0000	[thread overview]
Message-ID: <87addamxbz.fsf@zip.com.au> (raw)
In-Reply-To: <20030524113300.GB24132@lark> (Andy Wingo's message of "Sat, 24 May 2003 12:33:00 +0100")

Andy Wingo <wingo@pobox.com> writes:
>
> With regards to GError, I think the solution you propose is too much
> like C programming.

Oh, well, if it's nice and close then at least people familiar with
the C style will find the guile interface comfortingly similar.  Or
vice versa even.

> Wouldn't it be nicer if, instead of forcing the
> programmer to know about GErrors, if we simply threw an exception if the
> GError is set?

Perhaps make the gerror parameter optional, if omitted an error is
thrown.  Or a special value 'error or something to mean that.

That could allow a choice between programming in typical glib style
(check return values) or more typical guile style (file i/o throws
exceptions).

  reply	other threads:[~2003-05-25 23:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-24 11:49 GError Andy Wingo
2003-05-25 23:16 ` Kevin Ryde [this message]
2003-06-02  6:51   ` GError Andy Wingo
2003-06-02  9:20     ` GError Andreas Rottmann
2003-06-06 22:59     ` GError Kevin Ryde
2003-07-22 14:22       ` GError Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87addamxbz.fsf@zip.com.au \
    --to=user42@zip.com.au \
    --cc=guile-gtk@sources.redhat.com \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).