|
|
|
|
|
by edflsafoiewq
843 days ago
|
|
They didn't come from FP either. Records and variant records were common features of imperative languages (Algol, Pascal, Ada, Modula). They were considered to be subsumed by classes when OOP became popular. I believe FP did give us the pattern matching syntax for destructuring variants though. |
|