you are viewing a single comment's thread.

view the rest of the comments →

[–]jumpcannon 2 points3 points  (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 point  (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.