From: Kevin Ryde <user42@zip.com.au>
Cc: guile-devel@gnu.org
Subject: Re: srfi-39 implementation
Date: Fri, 14 May 2004 07:10:41 +1000 [thread overview]
Message-ID: <87oeos119q.fsf@zip.com.au> (raw)
In-Reply-To: 87brkxf7yl.fsf@holmes.localdomain
"Jose A. Ortega Ruiz" <jao@gnu.org> writes:
>
> Although you are right in that primitive-make-property & co. can be
> used, i think the case-based thing is slightly lighter and maybe even
> faster, since no hashtable creation/lookup is involved. Or, at any
> rate, the difference should be minimal,
Ok. Another possibility I guess (for both styles) would be a single
call or lookup giving back both fluid and converter. Doesn't quite
suit the way with-parameters* does its `map's though.
> (define-module (srfi srfi-39)
> #:export (make-parameter)
> #:export-syntax (parameterize)
>
> ;; procedure not in srfi-39.
> #:export (with-parameters*))
One #:export (with whatever comment) is enough I expect.
> (with-test-prefix
> "make-parameter"
In emacs
(put 'with-test-prefix 'scheme-indent-function 1)
noted in test-suite/lib.scm gives good indentation. I've also been
using
(put 'expect-fail 'scheme-indent-function 1)
(put 'pass-if 'scheme-indent-function 1)
(put 'pass-if-exception 'scheme-indent-function 2)
> (let ((conv (lambda (x) (if (x > 10) 10 x))))
> (pass-if "converter 1" (let ((a (make-parameter 32))) (eqv? (a) 32)))
A leftover from something? conv seems unused, and "(x > 10)" looks
pretty doubtful.
Otherwise looks good to me.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2004-05-13 21:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-06 1:02 srfi-39 implementation Jose A Ortega Ruiz
2004-05-06 1:24 ` srfi-39 implementation -- Bug fix Jose A Ortega Ruiz
2004-08-15 20:43 ` Marius Vollmer
2004-05-09 0:48 ` srfi-39 implementation Kevin Ryde
2004-05-09 1:09 ` Paul Jarc
2004-05-10 0:21 ` Jose A. Ortega Ruiz
2004-05-13 21:10 ` Kevin Ryde [this message]
2004-05-13 23:23 ` Jose A. Ortega Ruiz
2004-07-19 20:17 ` Marius Vollmer
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oeos119q.fsf@zip.com.au \
--to=user42@zip.com.au \
--cc=guile-devel@gnu.org \
/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).