This post explores the fourth guiding principle of data-oriented programming v1.1, which advises separating operations from data. It discusses how operations should be implemented on other classes rather than records, and how pattern matching with switch statements can be used to achieve dynamic dispatch.
Sort: