
@casmajavi has left the channel

FWIW in the Ocaml/Reason environment I find it really helpful to have the refmt
tool that can convert between the 2 syntaxes. Something similar for Racket/Racket2 would go a long way towards assuaging current users and welcoming future users :slightly_smiling_face:

That’s a good point @conrad.steenberg. I guess converting to s-exps should be trivial (if it’s not then it will likely not have my vote). The other round should not be too difficult if the syntax is consistent (which it should be, obviously). Maybe the various RFCs should include these two translators at least for sanity.


@alexknauth I’m not a big fan of indentation-based syntax despite its conciseness, but I’m quite curious to see how neatly you can make this. Just please don’t mix spaces and tabs ;) Also, do you intend to still allow for normal s-exp at the same time?

Actually, I think converting to S-expression is difficult. It’s unlikely that there will be a corresponding information about paren shape in the other syntax, for instance.

Are there existing techniques for parsing Racket code in ways that preserve whitespace and comments so they can be carried over to the translated code?