casmajavi
2019-9-13 17:19:48

@casmajavi has left the channel


conrad.steenberg
2019-9-13 20:54:25

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:


laurent.orseau
2019-9-13 21:12:17

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.


notjack
2019-9-13 21:18:32

laurent.orseau
2019-9-13 21:19:31

@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?


sorawee
2019-9-14 04:06:33

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.


rokitna
2019-9-14 06:09:45

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?