Re:Functional programming is finally going mainstream
by naasking on Wednesday July 13, 2022 @12:26AM
(#32079038)
Data types like records and algebraic types are data structures. Here's an algebraic type for polymorphic lists:
type 'a list = Nil | Cons of 'a
Re:Functional programming is finally going mainstream
by deltaonenine on Wednesday July 13, 2022 @04:02AM
(#32080085)
You 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.
I think they meant data structures, not data types. Things like lists of records that each contain further records.