[racket] 2htdp/image Sierpinski

2010-10-30 Thread Gregor Kiczales
In 2htdp/image the implementations of Sierpinski triangle and carpet are nice and simple, which is great for using them in class. (define (carpet size c) (if (<= size 2) (square size "outline" c) (local [(define sub (carpet (/ size 3) c)) (define ctr (square (/ size 3

Re: [racket] Emacs-style keybindings in Windows

2010-10-30 Thread John Clements
On Oct 20, 2010, at 9:48 PM, Eric Hanchrow wrote: > On Wed, Oct 20, 2010 at 10:54 AM, Shriram Krishnamurthi > wrote: >> I turn off menu key bindings: >> >> Edit | Preferences... | Editing | General | Enable keybindings in menus > > Aha! I think I used to know that ... > > ... while we're on

Re: [racket] Backreference question (regex)

2010-10-30 Thread Eli Barzilay
Yesterday, Carl Eastlund wrote: > I'm not sure I know what problem you're running into, but if you use > Perl regular expression be sure to use (pregexp ...) to compile them > or #px"..." to write them. Otherwise you get a slightly different > regular expression language (compatible with Unix util

Re: [racket] problems running moby from source

2010-10-30 Thread Danny Yoo
> sorry for possibly being too impatient - but could anyone just tell me if > Moby for Android is being further maintained/developed and what the current > state would be? > The thing is, I got so much involved in thinking about developing something > for Android now, I could also imagine helpin

[racket] raise-type-error for keyword arguments

2010-10-30 Thread Neil Van Dyke
Has anyone come up with a good way to do "raise-type-error" for keyword arguments? For example, to extend the "feed-animals: expects type as 3rd argument, given:dog; other arguments were: cow sheep cat" form to keyword arguments, I was thinking that the application: (foo "a" "b" #:x 42 #:y

Re: [racket] there must be function right after parenthesis?

2010-10-30 Thread 김태윤
wow.. thank you for your very kind explain it is very helpful and I notice how do they works thanks a lot! 2010/10/29 synx > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Racket is different from most languages in that it has a flexible > syntax. That means you can define new syntactical c