On Saturday, 19 June 2021 02:55:34 CEST jerry wrote:
> I am fairly new to guile and scheme. People tell me that I should use a
> functional style.
>
> I have 3 solutions for project euler problem #1. The first is
> functional, the second is imperative and the third is written in "Little
> Schemer"
Hi Jerry,
I am fairly new to guile and scheme. People tell me that I
should use
a functional style.
I have 3 solutions for project euler problem #1. The first is
functional, the second is imperative and the third is written in
"Little Schemer" style.
I was hoping other guile users would com
Agree set! is not a desirable form. It is not consistently optimisable. I
cannot find the reference in the manual.
Also consider the first form: you're building a list in 3 passes -- call
iota to generate a list, call filter to navigate the list again, then fold
to accumulate your answer. Therefor
-- Forwarded message -
From: Stefan Israelsson Tampe
Date: Sat, Jun 19, 2021 at 1:23 PM
Subject: Re: guile style
To: Tim Van den Langenbergh
I'm a big fan of named let's which are a very general functional construct
and tons of commentaries
about the functional style misses that
On 6/19/21 6:25 AM, Tim Van den Langenbergh wrote:
On Saturday, 19 June 2021 02:55:34 CEST jerry wrote:
I am fairly new to guile and scheme. People tell me that I should use a
functional style.
I have 3 solutions for project euler problem #1. The first is
functional, the second is imperative an
On 6/19/21 7:20 AM, Christopher Lam wrote:
Agree set! is not a desirable form. It is not consistently optimisable.
I cannot find the reference in the manual.
Also consider the first form: you're building a list in 3 passes -- call
iota to generate a list, call filter to navigate the list again
> From: jerry
>
> I am fairly new to guile and scheme. People tell me that I should use a
> functional style.
>
> I have 3 solutions for project euler problem #1. The first is
> functional, the second is imperative and the third is written in "Little
> Schemer" style.
>
> I was hoping other guile
On 6/19/21 2:16 PM, jerry wrote:
> On 6/19/21 7:20 AM, Christopher Lam wrote:
>> Agree set! is not a desirable form. It is not consistently optimisable. I
>> cannot find the reference in the manual.
>>
>> Also consider the first form: you're building a list in 3 passes -- call iota
>> to generate
On Sat, 19 Jun 2021, at 14:16, jerry wrote:
> On 6/19/21 7:20 AM, Christopher Lam wrote:
> > Agree set! is not a desirable form. It is not consistently optimisable.
> > I cannot find the reference in the manual.
> >
> > Also consider the first form: you're building a list in 3 passes -- call
>
On 6/19/21 1:59 PM, Linus Björnstam wrote:
Unlike Donald Knuth, I can't stop myself from premature optimization and
so far, in my short Guile career, I have almost always used my option 3.
I will look into srfi-158 and srfi-171 because they look very interesting.
Based on the responses here, I g
10 matches
Mail list logo