5 ms·
First time looking at Guile and I see this: > (use-modules (srfi srfi-19)) Couldn't they have picked a better name for these modules? seems like it would be q
by ubercow 11y ago
First time looking at Guile and I see this:
> (use-modules (srfi srfi-19))
Couldn't they have picked a better name for these modules? seems like it would be quite obnoxious to remember all these by their number instead of a nice name.
- kazinator 11y agoThe SRFI numbering is Scheme-language-wide; it's not a Guile thing. SRFIs (Scheme Requests for Implementation) are something like RFC's for the Scheme language. They are proposed features that are not standardized in the Scheme Report. Their numbers identify the proposal. So if we see srfi-19 being referenced in Guile code, it is cryptic, but it references the proposal which gives the requirements for that feature. If you're porting code from Guile which depends on srfi-19 to another Scheme, the consistency of the reference will make it easy.
- ubercow 11y agoThat makes a little more sense. Thanks!
- dragontamer 11y agosrfi is how scheme does things however. Virtually every other scheme interpreter that supports these modules have the same naming scheme.
- pygy_ 11y agoIt refers to the SRFI process and proposals (http://srfi.schemers.org/srfi-process.html http://srfi.schemers.org/srfi-process.html), specifically: http://srfi.schemers.org/srfi-19/srfi-19.html http://srfi.schemers.org/srfi-19/srfi-19.html They may want to alias these to memorable names, like 'sfri-time', for this one. There are probably drawbacks to using such a scheme, though, like possible ambiguities if two SFRIs cover the same topic differently.
- davexunit 11y agoAs others have said, this has to do with the numbering system for Scheme Requests For Implementation at <http://srfi.schemers.org/> http://srfi.schemers.org/>, but I agree that more memorable module names like (date) would be useful for commonly used SRFIs. On the subject of SRFIs, which ones do you fellow Schemers use? I think the ones I use most often are SRFI-1, SRFI-9, SRFI-11, SRFI-26, SRFI-37, and SRFI-41.
- agumonkey 11y agoWeren't aliases proposed ? what would you think ? The SRFI system is not user friendly. It feels like typing binary cpu opcode.
- GregBuchholz 11y ago>Weren't aliases proposed? ...sounds like a good candidate for an SRFI...
- agumonkey 11y agoSRFI-927 I guess
- davexunit 11y agoI think some sort of alias would be good. Perhaps it could implemented as a module that just re-exports all of the public symbols from the relevant SRFI module. Needs discussion on guile-devel.
- agumonkey 11y agoSomehow similar to meta packages in linux distributions ? pragmatic.