Name: Anonymous 2015-10-17 14:21
C can do arrays and trees. Haskell can do trees but cannot do arrays. C is the winner.
(+ 1 2 3 (* 4 5 6) 7 8 9)
without parens?+ 1 2 3 * 4 5 6 7 8 9
does not work+ 1
2
3
* 4
5
6
7
8
9
+ 1 2 3 * 4
5
6
7 8 9
just looks extraordinarily strange to me, and would get worse with more complicated expressions.(+ 1
2
3
(* 4
5
6)
7
8
9)
(+ 1 2 3 (* 4
5
6)
7 8 9)
How would you know whether a function name is being passed as a parameter or if it is being called?
#'my-function
L B
A D
M A
L
A
D M
A B
CHICKEN
(c) 2008-2015, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.10.0 (rev b259631)
#;1> '|a symbol|
|a symbol|
Welcome to Racket v6.2.1.
-> '|hax my anus|
'|hax my anus|
Writing an interpreter to work without parens would be much more complicated and error proneAs always, the Lisp excuse is "we're shitty programmers and cannot solve any complicated problem waahaaa".
The parens allow the programmer to choose whatever indentation styleBut they don't allow him to choose a style without parentheses in case he indents following a certain convention which is what most Lispers do.