I want to thank everyone for the helpful comments, and no worries
about the typing nickikt. I'll check out SICP. I've been playing
around in the repl, getting used to prefix notation, and I found out
the doc command. It makes learning this stuff much faster.

 I guess I should have been more clear about my level of CS/
programming knowledge. I took the CS-AP AB exam about 4 years ago, so
I know a little, and am slowly remembering a little more. The most
complex program I've written was a python program that set up the
initial game state for the board game Settlers of Catan. So I have a
small amount of familiarity with data structures, big O notation and
writing a few scripts.

I'm trying to grok this hello world template before I move on to other
stuff. What is the ns line for? I read the documentation on ns, but it
didn't make much sense to me. Is ns related to scope? All I know is
when I delete the ns line the program doesn't compile.

Why is it that function declarations must have the arguments as
vector(s), and not lists? As in, why can't I declare a function like
this?
(defn my-test
  (list n)
     (+ n 1))

In that default template, why does that hello world program even run?
At what line is main called? By the way, thank you nickikt for the
explanation that main is an overloaded function. That was not obvious
to me.

Also, I thought this language is functional but I'm able to do change
declarations in the repl. For example:
user=> (def x 1)
#'user/x
user=> x
1
user=> (def x 2)
#'user/x
user=> x
2
user=> (def x (+ 1 x))
#'user/x
user=> x
3

Why does that happen? This seems to go against the ideas of functional
programming. I can do the same things with functions too.

Also, is it preferred to put all this miscellaneous questions I come
up with in this thread, or to make a new topic for each question?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to