GNU Guile 2.0.9 released
lists.gnu.org
lists.gnu.org
Note: 2.0.8 was a brown paper bag release that was never announced, but
some mirrors may have picked it up. Please do not use it.
I'm a native speaker of English, but I don't understand the idiom of "brown paper bag release". A search shows that it's quite widely attested, however.What does it mean (and what's its origin)?
racket is the goto if you need r6rs compat though
http://wingolog.org/archives/2013/01/07/an-opinionated-guide...
tl;dr - he recommends the SICP mode for Racket.
See: http://www.gnu.org/ghm/2011/paris/slides/andy-wingo-guile.pd...
Why? Loops in general are quite easy to do in Scheme, specially the "for-each" variety.
"The most brightest programmers", if bothered by the lack of a C-like for construct, would be able to fix that, for them and for others, in 5 minutes with a macro.
Scheme is easy and incredibly powerful. Its only issue is that knowledge in other languages does not necessarily translate directly to it. In other words, you have to take some time to learn, which is not a good thing nowadays with the instant gratification culture.
for-each? http://www.gnu.org/software/guile/manual/html_node/SRFI_002d...
or how about a named let?
(let loop ((i 0))
(if (< i 10)
(display "hello\n")
(loop (1+ i))))
or how about using SRFI 42? (use-modules (srfi srfi-42))
(do-ec (: i 10) (display "hello\n"))
http://srfi.schemers.org/srfi-42/srfi-42.html for(i=0;i<max;i++) {
...
}
in Scheme becomes: (do ((i 0 (+ i 1)))
((>= i max))
...)
In general: for(VAR=INITIALIZER;CONDITION;VAR=INCREMENT)
{
BODY
}
return RETVAL;
becomes: (do ((VAR INITIALIZER INCREMENT))
((not CONDITION) RETVAL)
BODY)
in Scheme.It's a pretty trivial transformation -- not hard at all. I think these "most brightest" programmers just didn't want to learn the freakin' language.