I'm not sure that it's so easy. The transformation must ensure that
this program works correctly:

#lang racket
(define-syntax-rule (#%datum . x)
  '(2 2 2))
(for ([i 5])
  (displayln i))

Gustavo

On Wed, Jan 4, 2017 at 7:17 PM, Matthew Butterick <[email protected]> wrote:
>
> On Jan 3, 2017, at 6:07 PM, Robby Findler <[email protected]>
> wrote:
>
> I think that people coming from python will expect that `in-range`s
> name is `range`. So why not meet their expectations?
>
>
> If you give a mouse a cookie ...
>
>
> Though it does seem that exact nonnegative integers — which behave as
> sequences when used in the iterator position — should also expand to
> `in-range`.
>
> (for/list ([i (in-range 5)])
>           i)
>
> (for/list ([i (range 5)])
>           i)
>
> (for/list ([i 5])
>           i)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-dev/BEC9DAE3-FAEB-4412-82AD-67EDAD6245E1%40mbtype.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-dev/CAPaha9MPibXtrL6xLR2rNYdr9O6bP_1sGbpR%2BAFXcm%2BQVwhu1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to