3 ms·
This is brilliant! > Reverent. Whether you belong to the Kingdom of Nouns or the Church of Lambda, be respectful of all faiths. Better yet, take the best of al
by titzer 10y ago
This is brilliant!
> Reverent. Whether you belong to the Kingdom of Nouns or the Church of Lambda, be respectful of all faiths. Better yet, take the best of all worlds when designing your language (see: my previous post). Don't force users to pick one paradigm over the other, but rather be flexible enough to accommodate all walks of life.
If only.
But, that being said, I think all languages are coming around to adding first class functions.
- tracker1 10y agoWhat's funny, is to me F# and JavaScript would rank pretty highly in my mind. Though JavaScript does allow for more varied paradigms of adoption, but not so friendly.
- douche 10y agoComparing JS and F# is interesting... I would be very psyched if web browsers implemented F# rather than JS. Type safety, with inference, would be a big win.
- catnaroek 10y ago> But, that being said, I think all languages are coming around to adding first class functions. Object-oriented languages have always been higher-order. Functional programming is great, but object-oriented languages have always had first-class procedures, whether they compute mathematical functions or not. And not all procedures compute mathematical functions in functional languages either. What object-oriented languages lack is an emphasis on values, rather than the memory locations (aka object identities) that contain said values. The benefits of not worrying about object identities cannot be overstated: Removing the spurious distinction between memory blocks that hold equal values automatically endows the language with a richer equational theory that can be used both by language users (for reasoning about correctness) and language implementors (for optimization purposes).