Simply Scheme's "simply.scm" for Guile 3

Janneke Nieuwenhuizen <[email protected]>
Newsgroups gmane.lisp.guile.user
Organization AvatarAcademy.nl
Message-ID <[email protected]>
Hi!

Looking at

    "Simply Scheme: Introducing Computer Science"
    By Brian Harvey and Matthew Wright
    <https://people.eecs.berkeley.edu/~bh/ss-toc2.html>

as mentioned on IRC, I found that the accompanying "simply.scm"
<https://people.eecs.berkeley.edu/~bh/downloads/simply/simply.scm> does
not play nicely with Guile 3.  Notably using the overloaded `+' in
combination with `butfirst' does not work as is.

Using the attached "simply.scm" (also available as
<https://lilypond.org/janneke/simply-scheme/simply.scm>) now this

--8<---------------cut here---------------start------------->8---
guile --no-auto-compile -l simply.scm
scheme@(guile-user)> (+ 3 (butfirst 1075))
$1 = 78
--8<---------------cut here---------------end--------------->8---

also works with Guile \o/.

Greetings,
Janneke


-- 
Janneke Nieuwenhuizen <[email protected]>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
simply.scm (application/octet-stream, 35.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.