Hello,
I've been trying to build the current master, and it fails when I get to
(cps utils). i.e. " BOOTSTRAP GUILEC language/cps/utils.go". It may be my
own issue, as I'm ignorant of the changes to the bootstrap process, so I
figure here is better than bug-guile (for now). If it matters I'm on x6
Hello guilers,
Here is a more complete patch. I've also attached a patch to export
declare-opaque-header!, which I've occasionally found to be useful.
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "Th
Thien-Thi Nguyen writes:
> () Ian Price
> () Sun, 06 May 2012 05:52:00 +0100
>
>I think we can leave trailers until I have some actual data on
>how much these are actually used in practice, and/or someone
>complains about it being missing. WDYT?
>
> It&
p://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=guile.
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
t it may need a rebase first.
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
My thanks to Ludovic, Andy, and all other contributors for their help in
this release.
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
[0]. I don't personally like this solution, since it seems fragile, and
it's not clear how it would interact with the -x switch.
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
nicer compilation. I would like this to change. I
don't know if I will be able to change its fortunes, but I would
appreciate help in testing it. In particular, if you have pure scheme
libraries that you would like included, I would be much obliged if you
would email me links to them. (p
Ian Price writes:
> Just an FYI, it still isn't up. :-P I know nalaginrut already offered,
> but if you can tell me where to find the available.scm format I can look
> into hosting this temporarily myself.
Oh I see, it is just a list of package forms (as in pkg-list.scm), but
w
thread, you can email
me links if you want me to package them, and you can check out the
guildhall documentation for the pkg-list.scm format if you want to give
it a try yourself.
There is no interface for user submissions at the moment, but I am
looking into that. Hopefully, there will be
ost of the information was taken from the guile-lib info page. I hope
the copyright info is correct.
Anyway, if there are no objections to the content, I will upload the
package to my repo.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity
I think,
racket, and arcfide was working on adding this to chez.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
pload facility is
ongoing, but if you want a library packaged/included shoot me a mail
(pure scheme only at the moment, hopefully scheme & c / elisp /
ecmascript / brainfuck soon)
0. https://github.com/ijp/guildhall/
1. Installation instructions -- https://gist.github.com/3327296
--
Ian Pric
or expository purposes
1. guildhall seems to make some sort of a distinction between "programs"
and "executables", but I'm not sure what the reasoning is for this.
2. executables would go in ~/.local/share/guildhall/2.0/$name/bin
--
Ian Price -- shift-reset.com
&quo
Ian Price writes:
> Now, as I see it we have a few options available here.
>
> 1. Patch guile to also look up srfis using the above convention.
> 2. Absorb (set-difference portable-srfis guiles-srfis) into guile proper
> 3. I change the srfi package hosted on my repo to one th
oids many important portability
questions. But we all can dream...
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Hence no problems.
>
> Yes, of course.
IIRC, equal? in r6rs is supposed to terminate also. If someone
implements it, please backport it to the (rnrs base) module.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
d-right, string-unfold, string-fold-right, string-fold and
hash-fold _are_ in the base, and this is supposed to be list processing
language.
1. http://mumble.net/~campbell/scheme/shuffle.scm
2. http://okmij.org/ftp/Haskell/perfect-shuffle.txt
--
Ian Price -- shift-reset.com
"Programming is
ldhall/issues/6
1. Well, -Q in emacs is really "-q --no-site-file --no-splash" but who's
keeping track? ;-)
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
harm to make them eq?
If you want distinctness and mutability, you can always call the vector
constructor.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Ian Price writes:
> anyway. Anyway if vectors are immutable, as I believe they are, it
I, of course, meant vector literals, but a quick test shows this is not
the case.
(define v #(1 2 3))
(pk v)
(vector-set! v 0 #f)
(pk v)
~ $ guile -s /tmp/test.scm
;;; (#(1 2 3))
;;; (#(#f 2 3))
ble-2.0. I also have a patch to
fix a typo.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
>From a764dcb9735c2478392006287a97dd07541e55ee Mon Sep 17 00:00:00 2001
F
ts, have it output relevant variables, and
check the output. Hmm. This seems like it would be problematic with
--listen though, since we'd need to run two instances, and make some
visible changes to the instance. Maybe I just haven't thought it through
enough.
--
Ian Price -- shift-reset
rk on sdl bindings is either
coordinated with ttn, with a view to be included in the existing
guile-sdl, or if it were at the very least compatible.
0. It used to be necessary to make a small tweak, I forget if this is
still the case.
--
Ian Price -- shift-reset.com
"Programming is like pinbal
;list, with the
obvious simple implementations
(define (q->list q)
(car q))
(define (list->q l)
(if (null? l)
(make-q)
(cons l (last-pair l
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
update to here, and guile-user sometime in the next week or
two.
1. http://lists.gnu.org/archive/html/guile-devel/2012-02/msg00038.html
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
nalaginrut writes:
> hey guys! Should we consider add our specified name, like: .gl or
> just .guile?
Please don't
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
ckages, so that 2.0.5 users don't need to do anything.
R7RS will probably want its own incompatible convention anyway...
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
n the appropriate package. But as
it stands, the provides are somewhat orthogonal to how the code gets
installed.
Andreas,
Guildhall is a friendly fork of Dorodango, so what do you think about
adding this sort of thing?
--
Ian Price -- shift-reset.com
"Programming is like pinball. The rewa
The patch looks fine to me (it had better be, since it is already pushed
:P), however I wonder if it wouldn't be prudent to look to moving
define-record-type into guile proper, and making (use-modules (srfi
srfi-9)) effectively a no-op.
--
Ian Price -- shift-reset.com
"Programmi
lua, so I can't really do it, but if you know
anyone who likes lua, and would be willing to hack on it, please suggest
it to them. It'd be a shame to see that code go to waste.
Wingo, Ludovic
I hope this isn't too forward of me.
--
Ian Price -- shift-reset.com
"Programming is li
rg/gmane.lisp.guile.devel/12291
The first issues would be them. There appears to be a notes.org in the
modules/language/lua directory, so compare with that, but I expect the
roadmap covered that. Then it would be a matter of working through the
lua manual, and seeing what else is missing.
--
Ian Pri
he pros/cons of the various suggested
approaches, but the only conclusion I've reached is that no single
solution is going to work out on its own.
I'll take some time to finish this list up and post it later today
--
Ian Price -- shift-reset.com
"Programming is like pinball. The
ce since now the calling module needs to
know the language of the module it's requiring.
0. https://lists.gnu.org/archive/html/guile-devel/2012-07/msg00067.html
1. https://lists.gnu.org/archive/html/guile-devel/2012-07/msg00068.html
--
Ian Price -- shift-reset.com
"Programming is like pinb
to affect the C code
for guile. It _might_ be possible to do this all in Scheme, but until
I've tried, I'm going to remain sceptical.
If you have a better suggestion please tell me :)
0. as we all know, "in computer science, every problem can be solved
with an additional layer o
2012-11/msg00011.html
1. http://srfi.schemers.org/srfi-97/srfi-97.html
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
>From 5f06983d26ccbd7410891730664aa83bef79e763
y seems
> worth changing, in my opinion.
Well, r7rs also has their own library naming convention, but, the main
change is that string-for-each should take multiple strings, not a
string and some indices as srfi 13 does
--
Ian Price -- shift-reset.com
"Programming is like pinball.
rest ...) ))
>
> What do you think?
Yes, that would be much better. It's startling how often I forget I can
syntax-case this way.
Changed, okay for me to push?
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well
Ian Price writes:
> First, I'm going to try and write a proof-of-concept guile-elisp
> executable. This shouldn't be too hard, I think, and may shed some light
> on expected difficulties.
I was distracted by the pfds release so it's taken me longer than it
should h
rent languages, a command-line
> argument or argv[0] switch make a lot of sense.
I've had quite a few votes for argv[0] so that's probably what it's
going to be. --lang might be worth adding as an option under the "guile"
name (or --from to match "guild compile"
Okay, pushed to stable-2.0
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
x27;t say anything about the behaviour of hashtable-set! and
hashtable-update! on immutable hashtables, this would be allowed.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Whoops, in my haste, I forgot to note that this _is_ a bug in guile's
documentation, not in the implementation. Suggested fix included.
Ludovic, Andy:
Should I add him to THANKS too?
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the o
e, adds values and returns a new
> hashtable. I know, I prefer pure functional implementations...
You could look up vhashes in the manual. Alternatively, if your data
has an ordering you can use (pfds bbtrees) from my pfds collection[0]
0. https://github.com/ijp/pfds or guild install pf
appeared in the lists a few
> times.
(os process) might be reasonable, since we are forever complaining about
the popen module, but I don't see why we need (ansi term-color).
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the oppo
ng
>> properties
>> on symbols, e,g. currently a symbol slot is a variable, but to
>> effectively support CL I would go for
>> /Stefan
I don't think we should get ahead of ourselves, but emacs has had some
minor CL emulation in things like cl.el and cl-lib. I think thes
gt; effectively
> represent those ideoms. Any thoughts on it?
At one point I implemented tagbody for a laugh using call/cc. I've
attached the code, but it's kinda lame. I was much less experienced with
continuations and macros then, and I could certainly write it better now.
--
Ian Price -- s
structions at
https://github.com/ijp/guildhall/wiki/Getting-Started
I'll try and get a mail out later this week about the current state of
affairs with guildhall.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
ith guildhall, along
with some known interface bugs, the srfi package issues, and support for
C etc. A full post will be made later in the week.(promise :)
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from
meaning Guiler posts an announcement to here, or
guile-user. We don't vet them, and we've certainly had bad APIs posted
here before .
I'm an optimist though: if we can find them, we can fix them, and it
seems to work okay in other languages.
0. http://elpa.gnu.org/
1. http://m
they have others as well.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
to
placing the expression directly in the prototype.
Rough patch is attached.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
>From d3efaf09c4b57e3055afb503a6c0fd5c7a115ec
ple values.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
for the enclosing function's '...'. Right now, there is no way to
get that information.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Ian Price writes:
> I don't know much about Lua, but I think I could do the following.
> 1. Fix the lua-lexer failure.
> 2. Disable or fix[1] the variable-arguments functionality.
> 3. Rebase or merge with modern stable or master
> 4. Fix the errors that arise as a result o
x27;s not necessary, and I don't have any intention of ripping out the
parser and writing a new one. If someone else wrote one though, I think
we should consider it.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
ocedure} spawn-server [server-socket]
>> +@code{run-server} creates and runs a repl, making it available over
>
> Rather “Create and run a REPL” (“REPL” always
> uppercase).
Fixed.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The re
having TCP
be the default. Hm.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
s
interpretation (format). :)
0. http://synthcode.com/scheme/fmt
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Mark H Weaver writes:
> Frankly, I think it should simply be removed. It is mostly redundant
> with Chapter 7 (Guile Modules). If it's to be kept, it should be
> brought up to date, and should be kept up to date going forward.
+1 for removal.
--
Ian Price -- shift-reset.com
&
t; (define %future-prompt
>;; The prompt futures abort to when they want to wait for another
>;; future.
This isn't the only definition of let/ec in the Guile source code. I see
definitions in module/language/tree-il/peval.scm and
module/sxml/match.scm (as an aside, I notice match.scm makes the prompt
reuse mistake you almost did)
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Okay, apparently Ludovic already mailed the list about this, but I
didn't see it due to a stale gnus.
Ah well. Such is life.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Attached is a patch to remove the duplicated definitions.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
>From ffbe4cf3c151d5d5affd5baecf7b4cf65b22ce50 Mon Se
(begin
> (if (not (= (* 2 i) (analyze i)))
> (format #t "~a != (analyze ~a) == ~a~%" (* 2 i) (* 2 i)
> (analyze (* 2i
btw, Typo here ^^
> (lp (+ i 1)
>
Maybe I'll meditate on this more, and post a "schemier" version.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
rs (yes, the naturals are
recursive, but many of the algorithms, like fast-exponentiation, rely on
recursion other than on the predecessor).
0. http://srfi.schemers.org/srfi-41/srfi-41.html
1. http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf
2. https://github.com/ijp/ijputils/blob/master/streams.sls#L
> So, what do you think?
This is the sort of thing that belongs in a .guile rather than in
guile IMO.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Ian Price writes:
> I don't know much about Lua, but I think I could do the following.
> 1. Fix the lua-lexer failure.
> 2. Disable or fix[1] the variable-arguments functionality.
> 3. Rebase or merge with modern stable or master
> 4. Fix the errors that arise as a resu
Nala Ginrut writes:
> Ah~very nice~
> So many cool things should be documented...
Yeah, I've been meaning to do this. I'll try and get a patch for later
today/tomorrow.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the
hin or imported into the library. That
is, it may insert a reference to that identifier into the output code it
produces."
"All implicitly exported variables are also immutable in both the
exporting and importing libraries. It is thus a syntax violation if a
variable appears on the left-hand
Ian Price writes:
> The current issues with lua vs master are as follows
> 1) has been renamed to on master
> 2) has been replaced with which is not quite a drop-in
> 3) while was being compiled into something with improper scoping.
>
> I have fixes for these locally.
(B$SHELL ./the-file”, so the shebang isn’t
actually used.!
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
> Even GOOPS, Guile’s object oriented layer, which derives from CLOS
> (Common Lisp’s), uses the first style.
As does Racket's class library through the 'send' form.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
t's a good reason not to add it.
(As an aside, exposing the mmap'ed memory as a bytevector was my first
instinct, but I worry about this complicating matters if we ever wanted
to change gc)
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
le
after some time apart :)
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
>From 6cd6cbc1e77f159dcfabb2738877fc0022d8933c Mon Sep 17 00:00:00 2001
From: Ian Price
D
more like (untested)
(when (and length (not (zero? length)))
(error "content-length, but no body"))
(when (assq 'transfer-encoding (request-headers request))
(error "transfer-encoding not allowed with no body"))
(values request #vu8)
That said, why do we forbid transfer en
g the behaviour of object
properties when an object doesn't have a particular property)
0. For docstrings on general objects, we have object-documentation in
(ice-9 documentation) too, but that's a separate module, so I'm not
counting it.
--
Ian Price -- shi
ually pass.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
to be hygienic, that's pretty easy, but I'm not sure
what you can do about this in general. It's not like you can pass in the
gensymed name, because that will break the way people who for some
reason still right defmacros expect them to work.
Dunno, maybe I'm just missing some insight here.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
n 'first' or 'last', it would be better to use 'leftmost' and
'rightmost'
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
uit for new
contributors.
> Anyway can I suggest a Bug report where we
Then add it to the tracker :)
0. syntax-rules is fine, modulo al petrofsky/oleg style craziness
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it
t if we want it a specific
> error message could be achieved with `syntax-case', or a `syntax-error'
> macro (used in an "else" clause of `syntax-rules').
Pattern match errors are completely useless, really.
--
Ian Price -- shift-reset.com
"Programming is like pinba
ww.gnu.org/software/mit-scheme/documentation/mit-scheme-ref/Weight_002dBalanced-Trees.html
I have those in pfds under the name bbtrees (for balanced binary
trees). They are pretty flexible, and you get reasonable times for a lot
of operations, but like a lot of tree structures not particularly c
Hi guilers,
Just a note to say that we found a solution to nalaginrut's problem on IRC.
(lambda (mypattern)
;; Instead of testing the head of the pattern in the sxml-match, I
;; have moved it out to here.
(let* ((new-tag (if (equal? mypattern (car cl))
'success
be equivalent to (define aaa
unless) if unless was imported by the module, and this is also an error
because unless is not an identifier syntax.
If I were you I'd (use-modules (rnrs control)) or (import (rnrs
control)) instead.
--
Ian Price
"There are only two hard problems in Computer Science: cache invalidation
and naming things." - Phil Karlton
uld be useful when printing multiple line
strings, but the inconsistency with e.g. "\t\f" irks me. What do the
rest of you think?
I've also attached the patch I've been using to fix this for me.
--
Ian Price
"There are only two hard problems in Computer Sci
Andy Wingo writes:
>> $1 = (a . b)<= dot as cons ?
>
> Good catch! Fixed in git.
It is to my discredit that I fixed this for myself a few weeks back and
never remembered to send it to the mailing list, but too late for that
now ...
--
Ian Price
"There are only
anted to write a macro :-)
--
Ian Price
"There are only two hard problems in Computer Science: cache invalidation
and naming things." - Phil Karlton
It wouldn't match up with the meaning of syntax-case* in racket, but if
that's important to anyone, feel free to come up with another name :-)
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
to a few procedures that add location properties to
packages. I'm not sure if getting rid of the subdirs is desirable (it
might be), but changing the format is still feasible since doro/sigil
isn't in widespread use yet.
or
b) fix 'relative-uri' to take a list of paths, which
ist.scm
itself to decide what to bundle, but I don't think this is a priority,
as long as people know there are edge cases :).
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Andy Wingo writes:
> Out of curiousity, you aren't getting any Transfer: chunked issues?
Actually, I have, but I'd been busy with other things and so hadn't
investigated. I'm assuming from this email that it hasn't been
implemented except as a header? :-)
--
Ian
27;ve held back on including
a #:absolute-uri? keyword to cover this.
Any thoughts on this?
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
>From 90ee8b8eae09a6974959d43ce145f6565be10
;transcoded-port' which would handle it
transparently for users of the returned port.
I'd also suggest extending 'http-get' from (web client) to handle
chunked encoding (and trailers too, I guess) for the user.
Comments kindly requested,
Ian
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
you will also have
>
> (length (call-with-values (lambda () (values #t #t)) list)) => 2
> (length (call-with-values (lambda () #t) list)) => 1
> (eq? (values #t #t) #t) => #t
>
> and nobody seems all too worried about that, I guess.
Some of us are, I think in the guile co
1] , that suffers from a complete lack of
error handling in the case where the type-id is not, in fact, a
type-id. If I were to use this mechanism, I would create a weak hash of
datatype-ids, adding them to the hash with 'define-type', and checking
if they are in the hash in my 't
sax
input-parse) has the signature
find-string-from-port? _ _ . _
which is not particularly meaningful. Or how would I know what the
'ssax:xml->sxml' argument 'namespace-prefix-assig' is if I didn't know
already?
--
Ian Price
"Programming is like pinball. The rewa
ike
(define-syntax-rule (use-privates module proc-name ...)
(begin (define proc-name (@@ module proc-name)) ...))
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
fi.schemers.org/srfi-39/.
[fn:3]
https://www.gnu.org/software/guile/manual/guile.html#Fluids-and-Dynamic-States
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
bodies ...]))
;; now we can write functions that return early. Here, 'product' will
;; return immediately if it sees any 0 element.
(define product
(lambda^ (list)
(fold (lambda (n o)
(if (zero? n)
(return 0)
ridiculous, as y is still mutable, it is
the string "hello" which is not. As for mutable strings, I consider them
a mistake to begin with, but if people expect them to be be mutable, and
historically they are mutable (in guile), it is a mistake to change this
without prior warning.
1 - 100 of 120 matches
Mail list logo