Re:Ruby Is Still a Diamond
by matsemann on Thursday September 02, 2021 @10:25AM
(#28392439)
What's nice about extension functions in Kotlin is that they are statically imported. So you're not really modifying the class, and there is no danger of collisions (like it was when people monkey-patched javascript built-ins back in the day).
[ Parent
| on HN ]
Re:Ruby Is Still a Diamond
by modal-soul on Thursday September 02, 2021 @10:34AM
(#28392578)
Ruby's refinements sound somewhat similar; they let you scope your monkey-patches.