Syntax
Name:
Anonymous
2012-08-12 23:34
Scheme: (vector 1 2 3 4 5 5)
Clojure: [1 2 3 4 5]
Which one?
Name:
Anonymous
2012-08-13 0:45
Use Common Lisp and you can have have both (via the programmable reader).
Name:
Anonymous
2012-08-13 1:43
javascript: [1, 2, 3, 4, 5]
much more sensible
Name:
Anonymous
2012-08-13 1:45
>>3
Nonsensical. Why use “, ” as separator when most of the language's syntax use a single space?
Name:
Anonymous
2012-08-13 1:50
>>1
why vector when you have list?
Name:
Anonymous
2012-08-13 1:56
>>5
Arrays have constant time random access.
Name:
Anonymous
2012-08-13 2:18
>>6
If your
list implementation doesn't actually allocate a vector, it's shit.
Name:
Anonymous
2012-08-13 2:24
>>7
A list should be able to grow in O(1). A vector can't do that.
Name:
Anonymous
2012-08-13 2:29
>>4
because the parser is not allowed to insert semicolons there
Name:
Anonymous
2012-08-13 2:31
javascript: [1, 2, 3, 4, 5]
And FIOC, Ruby and Perl (and Clojure as well, since commas are treated as whitespace).
Name:
Anonymous
2012-08-13 2:41
Name:
Anonymous
2012-08-13 2:42
>>10
Oh snap, I just realized that that's also
VALID SMALLTALK.
Name:
Anonymous
2012-08-13 2:50
>>8
-funrolled-linked-lists
Name:
Anonymous
2012-08-13 7:28
Name:
Anonymous
2012-08-13 7:30
>>1
Scheme: (vector 1 2 3 4 5 5)
Clojure: [1 2 3 4 5]
APL: 1 2 3 4 5
Name:
Anonymous
2012-08-13 8:58
(function () {
var myarray;
myarray[0] = 1;
myarray[1] = 2;
myarray[2] = 3;
myarray[3] = 4;
myarray[4] = 5;
return myarray;
})();
Name:
Anonymous
2012-08-13 12:56
PERL: (1,2,3,4,5)
Name:
Anonymous
2012-08-13 13:51
SEPPLES: {1, 2, 3, 4, 5};
Name:
Anonymous
2012-08-14 0:58
Brainfuck: +>++>+++>++++>+++++<<<<
Name:
Anonymous
2012-08-14 3:01
HTML: <ol><li>1</li><li>2</li><li>3</li><li>4</li><li>5</li></ol>
Name:
Anonymous
2012-08-14 3:33
/prog/ is pretty funny
Name:
Anonymous
2012-08-14 3:44
clojure is the best language ever
a modern, well designed, pragmatic lisp
>>2
clojure has a programmable reader now
Name:
Anonymous
2012-08-14 4:10
Scheme: #(1 2 3 4 5)
How do you faggots not know this? The Sussman is rolling in his grave.
Name:
Anonymous
2012-08-14 4:24
>>23
My question was more one of is it good to have a Lisp with additional syntax for data structures. Does Clojure have too much syntax?
Name:
Anonymous
2012-08-14 6:57
>>24
We have Clojure with all its syntax glory and CL for a more traditional Lisp. Use each tool for its own job.
Name:
Anonymous
2012-08-14 6:57
>>24
Well, then perhaps you should have said so, instead of expecting people to make sense of your ambiguous bullshit post.
Name:
Anonymous
2012-08-14 7:10
>>23
In Common Lisp,
#(1 2 3 4 5) and
(vector 1 2 3 4 5) are not equivalent since the former is a quotation. I don't know about Scheme and Clojure.
Name:
Anonymous
2012-08-14 7:32
Name:
Anonymous
2012-08-14 13:55
Name:
Anonymous
2012-08-14 14:16
1 2 3 4 5
Name:
Anonymous
2012-08-14 14:17
shiichan is best:
>>1,2,3,4,5
or just:
>>1-5
Name:
Anonymous
2012-08-14 17:33
Haskell: [1..5]
Perl: 1..5
Name:
Anonymous
2012-08-14 22:07
(list->vector (build-list 5 add1))
Name:
Anonymous
2012-08-14 22:44
APL: ⍳5
Name:
Anonymous
2012-08-14 22:55
>>25
Too bad Clojure is
SLOW AS BALLS
Name:
Anonymous
2012-08-14 23:30
>>25
/there's a kebab in your ass/
now you've got two problems
Name:
Anonymous
2012-08-15 1:20
>>35
joke on you! i can cum in 5 second!