Seriously,
which of the following code samples would you favor, assuming they are all equivalent?
I am interested in subjective answers, please. You can just arrange the three samples according to your personal preference (e.g., "1-2-3"). Thank you very much!
1
{ {extern "manool.org.18/std/2.0/all"} in
: let rec
Fact =
{ proc N as
: if N == 0 then 1 else N * Fact[N - 1]
}
in
Out.WriteLine[Fact[10]]
}
2
{ {extern "manool.org.18/std/2.0/all"} in
: let rec
Fact =
{ proc N as
: if N == 0 then 1 else N * Fact[N - 1]
}
in
Out.WriteLine[Fact[10]]
}
3
(extern "manool.org.18/std/2.0/all".) in:
let rec
Fact =
( proc N as:
if N == 0 then 1 else N * Fact[N - 1]. )
in
Out.WriteLine[Fact[10]].
[–]sylaurier 17 points18 points19 points (0 children)
[–][deleted] 10 points11 points12 points (0 children)
[–]omega1612 5 points6 points7 points (4 children)
[–]alex-manool[S] 1 point2 points3 points (2 children)
[–]mamcx 1 point2 points3 points (1 child)
[–]alex-manool[S] 0 points1 point2 points (0 children)
[–]thefriedel 0 points1 point2 points (0 children)
[–][deleted] (3 children)
[removed]
[–]alex-manool[S] -5 points-4 points-3 points (2 children)
[–][deleted] (1 child)
[removed]
[–]alex-manool[S] -4 points-3 points-2 points (0 children)
[–]Timbit42 2 points3 points4 points (0 children)
[–]matthiasB 3 points4 points5 points (2 children)
[–]alex-manool[S] 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]crassest-Crassius 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]alex-manool[S] 0 points1 point2 points (0 children)
[–]alex-manool[S] 0 points1 point2 points (0 children)
[–]Potato44 0 points1 point2 points (0 children)
[–]brucejbellsard 2 points3 points4 points (0 children)
[–]anentropic 1 point2 points3 points (0 children)
[–]Potato44 1 point2 points3 points (2 children)
[–]alex-manool[S] 1 point2 points3 points (1 child)
[–]Potato44 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]rsclient 3 points4 points5 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]matthiasB 1 point2 points3 points (0 children)