special forms and let binding

2010-05-30 Thread A.Rost
Hi!
For example, it's possible to do things like:
(def do println)
((var do) example)

And it works correct. But I don't understand how to get the same
behavior in let bindings.
I mean
(let [do println]
 ..)
what can I write to get the same results?

-- 
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


Re: idiomatic question about reader macro

2010-02-03 Thread A.Rost
Also I can try to implement them by myself. I have some ideas how to
do this.

-- 
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


Re: idiomatic question about reader macro

2010-02-03 Thread A.Rost
hmm...interesting view.
Now I don't have really expressive examples of using reader macro.

Also it seems that I find another way to achieve the functionality
that I need.

So all thanks for discussion.

-- 
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


Re: idiomatic question about reader macro

2010-02-02 Thread A.Rost
Well, clojure provides a variety of reader macro. In fact I don't
think that I would need different ones, but  I would like to have them
available, simply because I
like concise, purpose-built languages.  Besides I don't think that
user created reader macro would damage because there is practically no
need to use them in case of
currently-existant macro. As I write, this is only idiomatic question
for me. I need them only as a possibility that make the language more
concise and maybe one day I will really need them.

-- 
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


Re: idiomatic question about reader macro

2010-02-02 Thread A.Rost
2 ataggart
Ok. I don't explain coorect why I want to have build-in ability to
create reader macro.

In my study and job I very often use different spesific data
structures. It's very useful to have reader macro to work with them,
because it makes my code easilier to perception: work with data
structures differs from other code.


2 Timothy Pratley
Yes I've read this artivle before, but I want  to create reader macro
with build-in language tools.

-- 
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


idiomatic question about reader macro

2010-02-01 Thread A.Rost
Hi,
I'm a clojure newbie, with a background in Common Lisp (and
functional
languages such as haskell and erlang).

For me Lisp is a very powerful tool that gives me flexibility that I
need. Sometimes coding with CL I define reader macros and they perfect
suit for those situations. After I take a look on Clojure. It's a very
expressive, elegant language, but user-defined reader macro are
prohibited.

I've read all discussions about this. I realize that using user-
defined reader macro can be evil, but I think there is no point to
restrict them. I suppose that using them in the right way can make my
code more expressive and easy to read, though it's not the tool for
every day use and you should think a lot before using it. But I think
that the programmer should choose tools to solve the task. So  I think
it's wrong not to allow user create reader macro.

This is my opinion. Am I wrong? Or there are another reasons not to
use user-defined reader macro?

-- 
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