Op 13-4-2012 20:53, Stephen Bloch schreef:
On Apr 13, 2012, at 1:49 PM, Roelof Wobben wrote:

I still have to write testcases but it's looking good.
That's a bad sign: you should be writing test cases BEFORE writing the function 
:-)

(define verwerker (make-editor "aaa" "bbbb"))


; Editor ->  Image
; Function which displays the struct on the screen into a image.
(define (render verwerker)
Again, you've got a function parameter and a global variable with the same 
name.  This will cause confusion; I recommend renaming one of them.


Oke
But how does Racket then now that for example current is the same as verwerker ? In my opinoin I try to read in the "aaa" and "bbb" which I mentioned when I did the make-editor.

Roelof

____________________
 Racket Users list:
 http://lists.racket-lang.org/users

Reply via email to