[Haskell-cafe] Language complexity & beginners (Was: New type of ($) operator in GHC 8.0 is problematic)

Joachim Durchholz jo at durchholz.org
Mon Feb 8 22:51:43 UTC 2016


I'm not seeing a semicolon anywhere here...

Am 08.02.2016 um 21:39 schrieb Matthias Hörmann:
> Are you seriously suggesting to overloaded semicolons to *avoid*
> confusing newcomers to Haskell from other languages?
>
> And all of that just in case that newcomer happens to look at the
> output of :t ($)?
>
> On Mon, Feb 8, 2016 at 8:28 PM, Joachim Durchholz <jo at durchholz.org> wrote:
>> Am 08.02.2016 um 18:59 schrieb Michael Orlitzky:
>>>
>>> If most uses of "$" are for,
>>>
>>>     putStrLn $ "Hello" ++ " world!"
>>>
>>> to avoid,
>>>
>>>     putStrLn ("Hello" ++ " world!")
>>>
>>> then I think it's silly to worry about the type of "$". Most people
>>> don't have to know, care, or use it -- the second example is much
>>> clearer.
>>
>>
>> Only if you are on the standard programming language mindset.
>> I.e. those who learn Haskell first will find putStrLn "Hello" ++ "world!"
>> more natural.
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>



More information about the Haskell-Cafe mailing list