Transferring bindings between Rhombus and Racket

Is there documentation about how Rhombus values are represented when exported to Racket, and vice versa? (It may be that the correct answer here is to read the source, which I would be okay to hear.)

The context is that I'm writing some code in Rhombus (because I am giving a talk to some Python people and trying to have my cake and eat it too). It's been a very enjoyable experience, in large part I think because of the ever-excellent documentation.

I'm exporting some things from Rhombus to make use of on the Racket side (largely to draw trees and make plots) and sometimes vice versa. I can see clearly how to make use of, say, atomic values and parilists, but I'm less clear about how classes, for example, end up in Racket. (Well, they're structs, I think, but I'm not sure what happens to the names of the properties.)

It's not critical -- I'm getting on just fine so far -- but if there were something written down I would love to read it.

I don't have a direct answer to your question, but in general the Racket-Rhombus interoperation situation is currently poor and frequently changing in incompatible ways. This is especially true when exporting from Rhombus to Racket, as opposed to the other direction. You may have more luck finding up to date answers to your questions in the #rhombus channel of the Discord server, until more stable solutions arise.

Thank you, that's helpful to know. I will stick with simple values for now.

1 Like