2 ms·
This is because most FP languages embrace immutability, so setters are absent by design, and getters are not needed. Any computation goes to proper functions, n
by nine_k 9y ago
This is because most FP languages embrace immutability, so setters are absent by design, and getters are not needed. Any computation goes to proper functions, not "getters". Absence of virtual methods also helps: there is no point in having a getter (or a setter) if nobody would override it.