-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 10-02-12 23:38, John Clements wrote:
A user on stackoverflow had a question about this code:
(define list-sum-odd (lambda (list) (cond ((null? list) 0) ((odd?
(car list)) (+ (car list) (list-sum-odd (cdr list (list-sum-odd
(cdr list)
+1
Robby
On Fri, Feb 10, 2012 at 4:52 PM, Matthias Felleisen
matth...@ccs.neu.edu wrote:
Yes, and it was submitted in some form as a bug before. Why don't you modify
teach.rkt and see whether you like the result better. Then submit.
On Feb 10, 2012, at 5:43 PM, Danny Yoo wrote:
Ho
On Feb 13, 2012, at 5:05 AM, Marijn wrote:
... it highlighted the id list-sum-odd in what should have
been the 'else' case, and wrote:
list-sum-odd: expected a function call, but there is no open
parenthesis before this function
... which is really terrible, because there *IS* a
On 2/13/12 8:11 AM, Stephen Bloch wrote:
On Feb 13, 2012, at 5:05 AM, Marijn wrote:
... it highlighted the id list-sum-odd in what should have
been the 'else' case, and wrote:
list-sum-odd: expected a function call, but there is no open
parenthesis before this function
... which is really
On 2/13/12 4:20 PM, Stephen Bloch wrote:
On Feb 13, 2012, at 8:28 AM, David Van Horn wrote:
In BSL, you can detect when the first element of a clause is a variable bound
to a function, but I don't follow the reasoning about ISL. You can't
distinguish good from bad uses without running the
On Feb 13, 2012, at 8:28 AM, David Van Horn wrote:
In BSL, you can detect when the first element of a clause is a variable bound
to a function, but I don't follow the reasoning about ISL. You can't
distinguish good from bad uses without running the code because you can't
tell if a name
On Feb 13, 2012, at 5:07 PM, David Van Horn wrote:
On 2/13/12 4:20 PM, Stephen Bloch wrote:
On Feb 13, 2012, at 8:28 AM, David Van Horn wrote:
In BSL, you can detect when the first element of a clause is a variable
bound to a function, but I don't follow the reasoning about ISL. You
On 2/13/12 7:32 PM, Stephen Bloch wrote:
In ISL, there's an additional case: a local variable might or might not be
bound to a function. That's a little more hassle to check, but it should be
doable at compile-time. Again, if the first element of a cond-clause is an
identifier bound to a
On Feb 13, 2012, at 7:44 PM, David Van Horn wrote:
On 2/13/12 7:32 PM, Stephen Bloch wrote:
In ISL, there's an additional case: a local variable might or
might not be bound to a function. That's a little more hassle to
check, but it should be doable at compile-time. Again, if the
first
A user on stackoverflow had a question about this code:
(define list-sum-odd
(lambda (list)
(cond
((null? list) 0)
((odd? (car list)) (+ (car list) (list-sum-odd (cdr list
(list-sum-odd (cdr list)
(list-sum-odd '(3 4 5))
... which signalled an error. In #lang
Ho Ho! thought I. Beginner Student Racket will give a much better error
message. Actually, though, the error message was much worse: it highlighted
the id list-sum-odd in what should have been the 'else' case, and wrote:
list-sum-odd: expected a function call, but there is no open
Yes, and it was submitted in some form as a bug before. Why don't you modify
teach.rkt and see whether you like the result better. Then submit.
On Feb 10, 2012, at 5:43 PM, Danny Yoo wrote:
Ho Ho! thought I. Beginner Student Racket will give a much better error
message. Actually,
12 matches
Mail list logo