Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

syntaxes

Name: Anonymous 2011-01-30 5:42

Which languages have the nicest syntaxes?

My personal favourites are Haskell and Eiffel in that order. They are clean, relatively simple, readable and nicely optimized for the idiomatic programming style in their respective languages.

On the other hand I think Scala's syntax is particularly awful. It's the ugly bastard child of Algol and ML which both aren't that nice to begin with. It tries to be more regular than java but this only makes it less readable (parentheses for indexing) and the optional period/parentheses for method calls can lead to confusing code:
foo bar baz foobar
is it foo.bar.baz.foobar or foo.bar(baz).foobar or foo.bar.baz(foobar)?
Not that I'm in love with the period notation but there are other ways (smalltalk) to make it easier on the eyes without introducing ambiguity.

FIOC is also hard to look at.

Name: Anonymous 2011-01-30 6:06

C++ has the most beautiful syntax.

Name: Anonymous 2011-01-30 6:53

Go would be the nicest if it weren't for THE FORCED CAPITALIZATION OF EXPORTED SYMBOLS

Name: Anonymous 2011-01-30 7:04

definitely C++0x.

Name: Anonymous 2011-01-30 7:13

* synticen or syntaxen

Name: Anonymous 2011-01-30 7:45

Forth has the nicest syntax.

Name: Anonymous 2011-01-30 7:48

Python has nice and readable syntax, looks almost like pseudo-code. In Haskell there's to much of operators and it makes it harder to read sometimes (<|>, >>= and other). Lisp looks nice too.

In the middle I would put Java, it's inexpressive and usually code is much longer but very easy to read.

The ugliest syntax have Perl (big ball of mess) and C++ (eg. delete, delete[], why not having one).

Name: Anonymous 2011-01-30 9:34

Lisp has the nicest non-syntax.

Name: Anonymous 2011-01-30 10:34

>>8
If lisp has a non-syntax, then what does Forth have? Anti-syntax?

Name: Anonymous 2011-01-30 10:54

>>9
Anticudder

Name: Anonymous 2011-01-30 14:42

dubs ^_____^

Name: Anonymous 2011-02-03 2:24


Don't change these.
Name: Email:
Entire Thread Thread List