|
|
|
|
|
by nawfalhasan
3394 days ago
|
|
1. I get the difference you're talking about between an instance (identity based) and a value. My question is exactly about a value based oop language, more like 'Value Oriented Programming Language' with modelling and patterns similar to oop languages. C# has struct types, so does many languages which have mechanisms to disallow state mutation but they are all optional. You can pretty much do oop modelling with them all. 2. On Ruby, is it possible to have functions on hashtables, just like methods on objects? Is it possible to define a Person hashtable and a Car hashtable and type system pick up the difference? It would be a hack to code like that if idiomatic Ruby code is not built around hashtables. 3. I see your point not to get hung up on dot syntax, my question was out of curiosity. I do like object modelling and wished if I could continue with a paradigm I'm so familiar with without its warts (side effects). |
|