Re: [racket] for/hash: bad syntax in: for/hash

2012-01-05 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04-01-12 16:55, Matthias Felleisen wrote: > > On Jan 4, 2012, at 10:40 AM, Marijn wrote: > >> Basically, my idea was to transform: >> >> (dependent-boxes ((a) (b (* 2 a)) (c (+ 2 a b >> >> into something which would automatically propagate c

Re: [racket] for/hash: bad syntax in: for/hash [and 1 more messages]

2012-01-05 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04-01-12 22:50, Eli Barzilay wrote: > 11 hours ago, Marijn wrote: >> It took me a while to understand what you're saying here, but if >> I am not mistaken you're saying that the result of the >> macro-expansion is a function-application with `let*'

Re: [racket] for/hash: bad syntax in: for/hash [and 1 more messages]

2012-01-04 Thread Eli Barzilay
11 hours ago, Marijn wrote: > It took me a while to understand what you're saying here, but if I > am not mistaken you're saying that the result of the macro-expansion > is a function-application with `let*' (or `for/hash') in the > function position. Then when #%app looks that name up in the > env

Re: [racket] for/hash: bad syntax in: for/hash

2012-01-04 Thread Eli Barzilay
Yesterday, Matthias Felleisen wrote: > > Would syntax/parse have done better? For what Marijn does, I think that he'd end up with the same error. IME, every time I've seen a code walker they're an indication of either not knowing how to use the macro system well enough, or if there's no way to d

Re: [racket] for/hash: bad syntax in: for/hash

2012-01-04 Thread Matthias Felleisen
On Jan 4, 2012, at 10:40 AM, Marijn wrote: > Basically, > my idea was to transform: > > (dependent-boxes > ((a) >(b (* 2 a)) >(c (+ 2 a b > > into something which would automatically propagate changes in any > cell/box to any other box which was dependent on it. Pretty much > exa

Re: [racket] for/hash: bad syntax in: for/hash

2012-01-04 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04-01-12 10:57, Marijn wrote: > On 03-01-12 20:15, Eli Barzilay wrote: >> Two hours ago, Marijn wrote: >>> Hi, >>> >>> for/hash is giving me a syntax-error, but the error is in >>> macro-expanded code which is not shown by default and which is >>

Re: [racket] for/hash: bad syntax in: for/hash

2012-01-04 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03-01-12 20:15, Eli Barzilay wrote: > Two hours ago, Marijn wrote: >> Hi, >> >> for/hash is giving me a syntax-error, but the error is in >> macro-expanded code which is not shown by default and which is >> also seemingly inaccessible via the macr

Re: [racket] for/hash: bad syntax in: for/hash

2012-01-03 Thread Matthias Felleisen
Would syntax/parse have done better? On Jan 3, 2012, at 2:15 PM, Eli Barzilay wrote: > Two hours ago, Marijn wrote: >> Hi, >> >> for/hash is giving me a syntax-error, but the error is in >> macro-expanded code which is not shown by default and which is also >> seemingly inaccessible via the m

Re: [racket] for/hash: bad syntax in: for/hash

2012-01-03 Thread Eli Barzilay
Two hours ago, Marijn wrote: > Hi, > > for/hash is giving me a syntax-error, but the error is in > macro-expanded code which is not shown by default and which is also > seemingly inaccessible via the macro-stepper. The for/hash > expression works outside my macro, so I guess it's my fault, but it

[racket] for/hash: bad syntax in: for/hash

2012-01-03 Thread Marijn
Hi, for/hash is giving me a syntax-error, but the error is in macro-expanded code which is not shown by default and which is also seemingly inaccessible via the macro-stepper. The for/hash expression works outside my macro, so I guess it's my fault, but it would help if the syntax-error could be a