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

Syntax

Name: Anonymous 2012-01-08 13:49

What programming language has the best, cleanest and most beautiful syntax?

Name: Anonymous 2012-01-08 13:49

lisp

Name: Anonymous 2012-01-08 13:49

Also, you could provide examples to support your claims.

Name: Anonymous 2012-01-08 13:50

HTML

Name: Anonymous 2012-01-08 13:52

APL

Name: Anonymous 2012-01-08 13:52

Haskell

Name: Anonymous 2012-01-08 13:56

>>3
>>2

(defun fizzbuzz ()
    (dotimes (i 100)
        (let ((c (zerop (mod i 3)))
                    (d (zerop (mod i 5))))
            (cond ((and c d) (print "FizzBuzz"))
                        (c (print "Fizz"))
                        (d (print "Buzz"))))))

Name: Anonymous 2012-01-08 13:58

>>7
*puke*

Name: Anonymous 2012-01-08 14:00

C

nothing else compares to the beauty of C.

Name: Anonymous 2012-01-08 14:01

>>9
I bet you've never written a parser.

Name: Anonymous 2012-01-08 14:01

>>10
i have, in fact

Name: Anonymous 2012-01-08 14:02

Go.

Name: Anonymous 2012-01-08 14:05

Simplicity: Python
For everything else: C

Name: Anonymous 2012-01-08 14:06

>>11
Not for C.

Name: Anonymous 2012-01-08 14:06

Cleanest syntax? Probably Lua; it's like Python but without FIOC and __this__ """shit""". Having array indices start at 1 is completely retarded, though. Here's some arbitrary sample code:

local SET = function() end    -- unique key
local MUTATE = function() end -- unique key

-- decorator function for adding methods.
function mutable_helpers(func, mutate)
  mutate(func, function(old_func, ...)
    if select(1, ...) == SET then
      local k = select(2, ...)
      local v = select(3, ...)
      mutate(func, function(old_func, ...)
        if select(1, ...) == k then return v
        else return old_func(...) end
      end)
    else
      return old_func(...)
    end
  end)
  mutate(func, function(old_func, ...)
    if select(1, ...) == MUTATE then
      local new_func = select(2, ...)
      mutate(func, function(old_func, ...)
        return new_func(old_func, ...)
      end)
    else
      return old_func(...)
    end 
  end)
  return func
end

Name: Anonymous 2012-01-08 14:06

>>13
SIMPLICITY: PYTHON

FORCED INDENTATION OF CODE IS NOT SIMPLICITY

Name: Anonymous 2012-01-08 14:07

(A)*(B)

Name: Anonymous 2012-01-08 14:07

>>14
yes, for C

Name: Anonymous 2012-01-08 14:07

>>18
Then you agree that C is horrible.

Name: Anonymous 2012-01-08 14:09

>>19
no, i think that C is the best programming language

Name: Anonymous 2012-01-08 14:09

>>20
So do I but parsing it is horrible.

Name: Anonymous 2012-01-08 14:10

>>21
fair enough, can't argue that

Name: Anonymous 2012-01-08 14:10

>>16

Python is the cleanest looking language.

Name: Anonymous 2012-01-08 14:12

Python has the sexiest syntax of all.

Name: Anonymous 2012-01-08 14:12

FORTRAN 77
It's terrible language to use, but you can't argue that sixspace makes it look pretty and readable. Fortran 90 is shit, tho.

Name: Anonymous 2012-01-08 14:12

>>23
elif
elif
elif
elif
elif
elif

Name: Anonymous 2012-01-08 14:16

Pascal.

Name: Anonymous 2012-01-08 14:19

Bonerlang

Name: Anonymous 2012-01-08 14:42

Javascript.

Name: Anonymous 2012-01-08 14:44

Haskell and Clojure.

Name: Anonymous 2012-01-08 14:46

forth

Name: Anonymous 2012-01-08 15:24

QBasic.

FOR i% = 1 TO 100
PRINT i%
LOOP

i% = 0
DO
i% = i% + 1
LOOP UNTIL i% = 100

InputPart:
INPUT "Please enter 'yes':",answer$
IF answer$ = "yes" THEN PRINT "Very good!"
ELSE GOTO InputPart

OPEN "output.txt" FOR OUTPUT AS #1
PRINT #1,"Writing to text files is extremely easy!"
CLOSE #1

You can just open the editor, write down your thoughts, and hit F5. That's all it requires!

Name: Anonymous 2012-01-08 15:28

>>30
Clojure
([((([[[([([%[%[(,,,(%~[~@n/o %]))]]])])]]])))])

Name: Anonymous 2012-01-08 15:38

>>9
C isn't beauty, but old and simple.
But the standard library sucks when I need to do serious work.
Also, proper modules and meta-programming wouldn't hurt.

Name: Anonymous 2012-01-08 16:01

>>33
java.lang.Exception: Unable to resolve symbol: % in this context (NO_SOURCE_FILE:1)

Name: Anonymous 2012-01-08 16:51

>>34
But the standard library sucks when I need to do serious work.

How so? There's a reason why the standard library is the standard.

Name: Anonymous 2012-01-08 17:01

simplicity: brainfuck
else: sepples

Name: Anonymous 2012-01-08 17:04

>>36
doesn't even have round()
laughing_girls.jpg

Name: Anonymous 2012-01-08 17:06

>>36
Costly or unsafe, and much worse in multithread code.

Name: Anonymous 2012-01-08 17:09

>>39
C11, read your standard

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