[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: the forward method [dynamic vs. static typing]
"Ken Shan" <ken@digitas.harvard.edu> wrote in message
20031210004022.GA8375@eecs.harvard.edu">news:20031210004022.GA8375@eecs.harvard.edu...
> Static typing can make programs more concise: I can write
>
> getLine >>= print . (/2) . read
>
> or
>
> getLine >>= print . not . read
>
> rather than
>
> getLine >>= print . (/2) . readDouble
>
> or
>
> getLine >>= print . not . readBool
Some of us are not familliar with this syntax, what is going on here? Does
read know how to read because of it's next operation?
-- Mike