4 ms·
> I don't understand this point. All functional programming languages have algebraic data types and records, which are composite types. If this is not a "compos
by Izkata 4y ago
> I don't understand this point. All functional programming languages have algebraic data types and records, which are composite types. If this is not a "composite object", you'll have to clarify what you mean.
I think they meant data structures, not data types. Things like lists of records that each contain further records.
- naasking 4y agoData types like records and algebraic types are data structures. Here's an algebraic type for polymorphic lists: type 'a list = Nil | Cons of 'a
- deltaonenine 4y agoYou and the other person don't understand. All data structures have types. EVEN lists of records that each contain further records. A type or a data structure is an orthogonal concept to FP, because types exist in imperative programming and data structures also exist in FP.