waTeim / node-julia

Fast and simple access to Julia embedded in node
MIT License
80 stars 15 forks source link

Enable property getters on Julia immutable data types #7

Closed sebastiang closed 9 years ago

sebastiang commented 9 years ago

Data transfer objects/records/messages are often simple immutable structures. Because they are immutable, the values could be copied over so that simple object references (object.field) would work in JavaScript.

waTeim commented 9 years ago

It's long been my goal to have JRef be more than a simple placeholder, perhaps this is a perfect opportunity. I feel this could be done by implementing the valueOf() trick.