On dropping @names

Andreas Rossberg rossberg at google.com
Thu Dec 27 14:41:25 PST 2012


On 27 December 2012 23:38, Andreas Rossberg <rossberg at google.com> wrote:

> I don't feel qualified to talk for Scheme, but all Ocaml I've ever
> seen (SML uses more verbose 'let' syntax anyway) formatted the above as
>
>     let sq = x * x in
>>     print ("sq: " ^ toString sq ^ "\n");
>>
>>     let y = sq / 2 in
>>     print ("y: " ^ toString y ^ "\n")
>
>
> Similarly, in Haskell you would write
>
>     do
>
>        let sq = x * x
>>        putStr ("sq: " ++ show sq ++ "\n")
>>
>>        let y = sq / 2
>>        putStr ("y: " ++ show y ++ "\n")
>
>
Don't know where the empty lines in the middle of both examples are coming
from, weird Gmail quote-editing glitch that didn't show up in the edit box.
Assume them absent. :)

/Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121227/7d1e82f1/attachment.html>


More information about the es-discuss mailing list