Re: [racket-users] Allow Redefinition of Defined Expressions

2016-10-26 Thread İlker Kesen
Thanks a lot Caner. This is what I want exactly. On Wed, Oct 26, 2016 at 5:34 PM Caner Derici wrote: This is probably not a very good idea for numerous reasons, but here's one way to do that: (just extend the 'define' to set! things that are already bound) #lang racket (require (rename-in ra

Re: [racket-users] Allow Redefinition of Defined Expressions

2016-10-26 Thread Caner Derici
This is probably not a very good idea for numerous reasons, but here's one way to do that: (just extend the 'define' to set! things that are already bound) #lang racket (require (rename-in racket/base [define define-original]) (for-syntax syntax/parse)) (define-syntax (define stx) (syntax-

[racket-users] Allow Redefinition of Defined Expressions

2016-10-26 Thread İlker Kesen
Hi, I want to allow redefinition of already defined expressions (variables, procedures etc.), but Racket prevents me. I know, in DrRacket I can allow it via graphical preferences interface for Pretty Big and R5RS languages. However, I want to allow that operation in racket and sicp languages, t