Issue #16347 has been updated by dvarrui (David Vargas).


dvarrui (David Vargas) wrote:
> Thanks!
> Good document.
> 
> I didnt know deep_freeze. Its nice!



----------------------------------------
Feature #16347: InmutableObject
https://bugs.ruby-lang.org/issues/16347#change-82694

* Author: dvarrui (David Vargas)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
I notice Ruby is OOP language but also includes Functional programming features. But it's no 100% FP.
I like OOP, and Ruby but I think its good idea adding more features to our Ruby... always with respect at ruby wat. (Fun for developers)

================
INMUTABLE OBJECT
================
I know every Class inherits from Object and then inherits from BasicObject.
So I wonder if it could be posible create InmutableObject so... every class descending from InmutableObject... its also force to be Inmutable.
Perhaps with this option... it could be posible to be 100% FP and 100% OOP.

Could I do something more about this theme?

Thanks for your attention! 





-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>