Website message overhaul

Jacob Carlborg doob at me.com
Sun Nov 20 23:47:51 PST 2011


On 2011-11-21 00:31, Andrei Alexandrescu wrote:
> On 11/20/11 5:05 PM, bearophile wrote:
>> This is an interesting discussion topic. Scala is widely regarded as
>> a rather functional language (more than C#, less than F# and OCaML
>> and Haskell). Why is Scala perceived as quite functional?
>
> Marketing. Scala is most often contrasted with Java, so since it has
> lambdas, higher-order functions, and free functions, it is "more
> functional" than Java.
>
>> 1) It has pattern matching, lazy stream lists similar to Haskell
>> lists, its standard library is rather functional oriented, its has
>> better type inference,
>
> Not a functional thing.

You used this point as one of four when you described what's needed to 
categorize a language as functional at one of your talks with Herb and 
Scott posted here recently. The other three were: lambdas, immutability 
and purity. Which would mean that Scala fulfills, at least, two of your 
requirements.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list