abstract:
- Passing function parameter by reference, works with native API libraries.
- Unlimited number and array size, I'm always do dynamic programming.
- ...
Plus the reason please...
Originally Posted by jamieB
Most of the features I'm looking for are those of modern functional languages, e.g. haskell and ocaml, but with the addition of convenient-to-use dependent types. Type inference, referential transparency, pattern matching, higher order polymorphism, ADTs, GADTs. They all combine to produce elegant code.
I disagree: while those features may combine to enable elegant code they certainly don't combine to produce it, at least not for any informed definition of elegant (Edit: or produce).
I would argue that many of the features that are typically associated with functional programming aren't inherently features of functional programming. Unfortunately people tend to mistake the paradigm and the features exhibited by languages of that type.
The commonly held belief that functional programming automatically leads to better code is damaging. Stop it now .
Enjoy,
Mark. |