5 ms·
I always find it funny how people focus on the .method() syntax. You have the "pipe" operator in some functional languages that achieves the same thing, pass th
by sirwhinesalot 1y ago
I always find it funny how people focus on the .method() syntax. You have the "pipe" operator in some functional languages that achieves the same thing, pass the result of an expression as the first argument of the chained call on the right. Nothing to do with OOP.
- pjmlp 1y agoI think it needs a higher level experience across procedural, logical, functional and object based languages, the unique ways each one applies ideas into their programming model, how that interacts to CS, for finally understanding how those concepts come together, instead of being so fixated in language syntax.
- xigoi 1y agoThis is because in languages that don’t have UFCS, methods are often abused to create “natural” looking syntax like expect(6).toBe(even)