iqis / mod

A lightweight module system for R
https://CRAN.R-project.org/package=mod
GNU General Public License v3.0
4 stars 0 forks source link

On emulating OO behavior in a FP language #8

Open iqis opened 5 years ago

iqis commented 5 years ago

See http://okmij.org/ftp/Scheme/oop-in-fp.txt in 1999. It seems that every generation of programmers discover the same old thing again and again.

iqis commented 4 years ago

This seems like a bad direction to take for mod. In the future, prohibit mutability (except for debugging cases), inheritance and make users understand mod::ule as so. mod should be a friendly and convenient way to organize objects. The complexity of OOP should be handled by R6.