unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Use core or SRFIs?
@ 2019-10-24 15:55 Zelphir Kaltstahl
  2019-10-24 16:01 ` Nala Ginrut
  2019-10-24 17:01 ` Taylan Kammer
  0 siblings, 2 replies; 11+ messages in thread
From: Zelphir Kaltstahl @ 2019-10-24 15:55 UTC (permalink / raw)
  To: guile-user

Hello Guile Users!

I have a question regarding usage of SRFIs in Guile code.

Sometimes there are core functions, which are also available from an
SRFI implementation. One example I am currently dealing with are bitwise
operations for integer numbers. There is SRFI 60 and there are the core
functions like logand, logior and so on.

Usually I tend to think, that using the SRFI implementation in such
situation is better, as it is an implementation of a common interface,
which other Schemes might also have implemented. Using that makes code
more portable to other Schemes. However, I want to be sure, that this is
a good way of thinking about it. Are there ever arguments against using
an SRFI implementation, when an SRFI implementation provides what I need?

Another example are structs. I usually use SRFI 9 to make some structs,
instead of the core record or struct type.

What do you think?

Best regards,

Zelphir




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-10-24 20:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-24 15:55 Use core or SRFIs? Zelphir Kaltstahl
2019-10-24 16:01 ` Nala Ginrut
2019-10-24 16:41   ` Zelphir Kaltstahl
2019-10-24 17:02   ` John Cowan
2019-10-24 18:26     ` Zelphir Kaltstahl
2019-10-24 18:50       ` John Cowan
2019-10-24 19:47         ` Zelphir Kaltstahl
2019-10-24 19:56           ` John Cowan
2019-10-24 20:18             ` Zelphir Kaltstahl
2019-10-24 17:01 ` Taylan Kammer
2019-10-24 19:48   ` Zelphir Kaltstahl

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).