Re: [racket-dev] define-struct exports something to BSL

2010-09-21 Thread Michael Sperber
Nadeem Abdul Hamid writes: > Consider a beginner file with: >(define-struct boa (name length)) > > Student writes a template/function with parameter named "a-boa", but > misspells one occurrence, writing "boa" instead of "a-boa". > > (define (feed a-boa) > (make-boa (boa-name a-boa) >

[racket-dev] define-struct exports something to BSL

2010-09-21 Thread Nadeem Abdul Hamid
Consider a beginner file with: (define-struct boa (name length)) Student writes a template/function with parameter named "a-boa", but misspells one occurrence, writing "boa" instead of "a-boa". (define (feed a-boa) (make-boa (boa-name a-boa) (boa-length boa))) Their tests then f