Diff: [root] @ 960b850c9a7 | faq | css

niceness

File: haskell-vs-fortran [Diff]

diff --git a/haskell-vs-fortran b/haskell-vs-fortran
index fa307f6..44d17ba 100644
-- a/haskell-vs-fortran
++ b/haskell-vs-fortran
@@ -56,7 +56,7 @@ Doesn't look *so* bad though.
And now, factorial in haskell! (Not to hurt fortranners' feelings, a straightforward version. It may be even better)

bc. fac n
| n == 1 = 1
| otherwise = fac (n - 1) * n

Which one does look more like formula?
@@ -90,4 +90,4 @@ Last line: all the functions are applied to value 3. Result is [4,4,4], meaning

Fortran's *call()* is so lame and insecure, that it isn't even worth mentioning.

\ No newline at end of file
fn1. It's when calculations are performed as they are needed, not as they are mentioned.
\ No newline at end of file

By Voker57 on 2010-02-18 12:14:49 +0300 Powered by bitcheese wiki engine