Rust Goes to JavaScript Class
Today we merged syntax for defining classes in Neon, a library I maintain with K.J. Valencik for embedding Rust code in Node.
Bridging two languages with different object models is a fun challenge. Rust has structs and impls; JavaScript has prototypes and constructors. The goal was to make it feel natural and idiomatic on both sides, and I’m pretty happy with how it came out.