5 ms·
How come classes are being used in a functional language?
by BenGosub 4y ago
How come classes are being used in a functional language?
- layer8 4y agoClosures and objects are very similar: a bunch of data with associated code that you can call. See also https://wiki.c2.com/?ClosuresAndObjectsAreEquivalent https://wiki.c2.com/?ClosuresAndObjectsAreEquivalent.
- mastax 4y agoClasses are part of the .NET intermediate representation (CIL) that the compilers emit and that the virtual machine executes. OOP is baked in at a low level.