Re:Zygomys – An embedded scripting language for Go
by iopq on Thursday December 15, 2016 @07:24PM
(#13190028)
Because you can have free functions that take plain data. So you can have methods or you can have free functions. This is why it's à la carte - you can choose if you use methods or free functions. You can choose if your data has behavior or not.
[ Parent
| on HN ]
Re:Zygomys – An embedded scripting language for Go
by lacampbell on Thursday December 15, 2016 @07:29PM
(#13190049)
Right, absolutely. I am by no means claiming rust is an OO language, just that I would consider the structs + traits thing a way of making objects. I suppose I could have been more precise - it's not an object system by itself but it certainly can be very easily used as one. I think for a systems langauge they did a very fine job in designing that part of it.