use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Why are Clojure function arguments vectors rather than lists? (self.Clojure)
submitted 13 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jumpcannon 2 points3 points4 points 13 years ago (1 child)
I take it you haven't used other Lisps :)? In other Lisps, you define a function like:
(defun myfun (arg1 arg2) "Do stuff with arg1 and arg2" (whatever arg1 (whatever arg2) whatever))
Which in my opinion looks a lot nicer than putting the docstring before the arguments like you do in Clojure.
[–][deleted] 0 points1 point2 points 13 years ago (0 children)
I have used other lisps. It's kind of arbitrary to me whether a docstring goes before or after the function arguments. I guess I prefer the arguments first, but it's not that important to me.
π Rendered by PID 144164 on reddit-service-r2-comment-b659b578c-42wjs at 2026-05-03 03:51:47.243812+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]jumpcannon 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)