Re: [racket] on contract violation after adding 1471 strings to a BST

2014-08-08 Thread Matthias Felleisen
Why not turn on Emacs bindings inside of DrRacket? On Aug 8, 2014, at 8:31 AM, Daniel Bastos wrote: > On Tue, Aug 5, 2014 at 5:43 PM, Matthias Felleisen > wrote: > Warning: you switched from a teaching language to full Racket. > The former would have caught this mistake, which is why we > de

Re: [racket] on contract violation after adding 1471 strings to a BST

2014-08-08 Thread Daniel Bastos
On Tue, Aug 5, 2014 at 5:43 PM, Matthias Felleisen wrote: > Warning: you switched from a teaching language to full Racket. > The former would have caught this mistake, which is why we > designed them for HtDP. Racket is for grown-up parenthesis > eaters -- who want the behavior of cond that you j

Re: [racket] on contract violation after adding 1471 strings to a BST

2014-08-05 Thread Daniel Bastos
Thanks for pointing this out. On Tue, Aug 5, 2014 at 5:43 PM, Matthias Felleisen wrote: > Warning: you switched from a teaching language to full Racket. > The former would have caught this mistake, which is why we > designed them for HtDP. Racket is for grown-up parenthesis > eaters -- who want

Re: [racket] on contract violation after adding 1471 strings to a BST

2014-08-05 Thread Matthias Felleisen
Warning: you switched from a teaching language to full Racket. The former would have caught this mistake, which is why we designed them for HtDP. Racket is for grown-up parenthesis eaters -- who want the behavior of cond that you just experienced, or so I am told. -- Matthias On Aug 5, 2

Re: [racket] on contract violation after adding 1471 strings to a BST

2014-08-05 Thread Daniel Bastos
On Tue, Aug 5, 2014 at 5:06 PM, Jens Axel Søgaard wrote: > What happens in create-bst-word, when the word to inserted is the same > as (node-word bst) ? Aha! I see. It returns void because there is no case for when the string is equal. > (void? (create-bst-word (create-bst-word false "dan") "d

Re: [racket] on contract violation after adding 1471 strings to a BST

2014-08-05 Thread Jens Axel Søgaard
What happens in create-bst-word, when the word to inserted is the same as (node-word bst) ? /Jens Axel 2014-08-05 21:56 GMT+02:00 Daniel Bastos : > After studying chapter 14 of HtDP, I decided to try putting strings into a > BST. The code below works with a few strings. I have a file with 22064