takikawa / sweet-racket

A port of sweet expressions to Racket
http://pkg-build.racket-lang.org/doc/sweet/index.html
Other
47 stars 10 forks source link

{e} -> e, and {op e} -> (op e) #20

Closed AlexKnauth closed 9 years ago

AlexKnauth commented 9 years ago

There was a test that I had to change for this, so, did you have a specific reason for not doing this?

AlexKnauth commented 9 years ago

@takikawa what do you think about this?

takikawa commented 9 years ago

No specific reason, but the original behavior (putting in nfx) is what's described in the original sweet expressions document I think. The test suite is just taken from the original implementation.

Would it be better to just bind nfx to a macro that does this transformation?

AlexKnauth commented 9 years ago

In the video at about 04:47 here: http://readable.sourceforge.net He says that a singe datum in a curly-list is that datum and two datums are those two datums in that order.

takikawa commented 9 years ago

Oh, sounds good then. Maybe the test suite was wrong or maybe I broke it at some point.