|
|
|
|
|
by leshow
2351 days ago
|
|
> However, ADT's can be used in procedural programs or OOP programs as well. See Rust. Rust isn't OOP. Funnily, it's type system is pretty much the same as Haskell's but stops just before higher kinded types. Ignoring type systems and just looking at functional vs imperative, the advantage for functional is immutability making functions easier to reason about. Haskell in particular is also lazy, and therefore enables you to not be concerned with evaluation order. |
|
>Ignoring type systems and just looking at functional vs imperative, the advantage for functional is immutability making functions easier to reason about. Haskell in particular is also lazy, and therefore enables you to not be concerned with evaluation order.
Sans the part about laziness, for which the formal term is "normal order evaluation" FYI, OOP guys say the exact same thing about objects word for word.