Re: Why isn't there a fold-right?

2012-06-10 Thread OGINO Masanori
> and 'chunk-next'. > What are these? See clojure.lang.{IChunk,IChunkedSeq}. > And is there any lazy solution? Probably no. Both `fold-right` and `reverse` must be strict IMHO. -- OGINO Masanori http://twitter.com/omasanori -- You received this message because you are su

Re: [PATCH] RFC: Add Functions `tabify` And `untabify`

2012-06-10 Thread OGINO Masanori
ing these > functions, then I think that's enough justification to add them -- > maybe first as private fns in clojure.repl. Later on, if they seem > generally useful, we can incorporate them into clojure.string. Yes, I'll post a patch for clojure.repl when I finish. Many thank

Re: [PATCH] RFC: Add Functions `tabify` And `untabify`

2012-06-08 Thread OGINO Masanori
clojure.repl. That is why I wrote a pair of functions in clojure.string and send a proposal. However, Stuart Sierra told me that they are "fairly specialized function"s and almost all people in this thread agreed with him, so I think adding them should not be done. I'm sorr

Re: [PATCH] RFC: Add Functions `tabify` And `untabify`

2012-05-26 Thread OGINO Masanori
What I mean in "they are not used anytime" is "they are _not always_ used."... I'm sorry. -- OGINO Masanori http://twitter.com/omasanori -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

[PATCH] RFC: Add Functions `tabify` And `untabify`

2012-05-26 Thread OGINO Masanori
later), so it's not very important to include them in clojure.string (by adding it as private function in clojure.repl or defining it by letfn). It's my first contribution (I hope), so I'm anxious to make a ticket in JIRA immediately. Any suggestions would be appreciated. Regards, O

Re: Migration to 1.3 for mortals

2011-09-09 Thread OGINO Masanori
ay/doc/Clojure+Contrib : > compatible with Clojure 1.2 and Clojure 1.3 So you can use new one when your version is 1.2 or later. > I think issues like that are fundamentally important if Clojure is to > be adopted for production work. +1 -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.o

Re: How to view the doc of a ns in 1.3-beta3?

2011-09-08 Thread OGINO Masanori
Hello. I posted same problem in July, but at that time that is not fixed. http://groups.google.com/group/clojure/browse_thread/thread/c3ef89e6019732d/d363823049808c2c Shall we run back over that? -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message

Re: JSON library for clojure 1.3

2011-08-02 Thread OGINO Masanori
e-sensitive codes, or less (apply str ...string manipulation...) without getting rid of seq abstraction. Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: JSON library for clojure 1.3

2011-08-01 Thread OGINO Masanori
> Similar question: where is clojure.contrib.string for 1.3? +1 http://dev.clojure.org/display/design/Contrib+Library+Names c.c.string is not included in this list. Is there any plans to go to modular contrib (string.incubator, tools.string, etc.)? -- Name: OGINO Masanori (荻野 雅紀) E-m

Re: clojure.contrib.command-line

2011-07-29 Thread OGINO Masanori
> no reason other than its a small lib with a handful of functions... I see. Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send ema

Re: clojure.contrib.command-line

2011-07-28 Thread OGINO Masanori
Well, README and tests are very good. I withdrew into REPL and overlooked them stupidly. I'm very sorry. BTW some functions seems not to be public API though they are public. Why they are not separated by defn- or specific namespace like clojure.tools.cli.internals? -- Name: OGINO Masanor

Re: Java 7 is out!

2011-07-28 Thread OGINO Masanori
ient and -server VM modes available in 64-bitJava? Currently only the Java HotSpot Server VM supports 64-bit operation, and the -server option is implicit with the use of -d64. This is subject to change in a future release. --- So 32-bit Windows JRE matters, right? -- Name: OGINO Masanori (荻野 雅紀

Re: clojure.contrib.command-line

2011-07-28 Thread OGINO Masanori
; args] (let [opts (parse-opts args)] (println "in-file-name:" (:in-file-name opts It might be verbose but I think it is more descriptive than with-command-line one. However, I'd like more documents and examples about tools.cli. -- Name: OGINO Masanori (荻野 雅紀) E-ma

Re: Java 7 is out!

2011-07-28 Thread OGINO Masanori
call new libraries even if they are not used Clojure itself. (You may tell users your code works with Java7) -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: passing value to functions

2011-07-28 Thread OGINO Masanori
ot;)) Indeed you can choose only one way, I suggest considering two ways. Sometimes using -> is easy to read, and sometimes it is hard to do. (Readability is the matter in this case, right?) -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because y

Re: protocols and records -- use when?

2011-07-28 Thread OGINO Masanori
Many thanks, abp and Alex. Additionally I think this post (and original discussion here) is also worth reading: http://kotka.de/blog/2011/07/Separation_of_concerns.html though the conclusion is not the community consensus (for now). -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og

Re: passing value to functions

2011-07-28 Thread OGINO Masanori
http://clojure.org/state may help you to know Clojure's "value". ; AFAIK Java's string is also immutable...isn't it? -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "C

Re: Code structure/design problems

2011-07-28 Thread OGINO Masanori
state without great difficulty, it is also OK. (comment However, probably I need to spend a bit of time diving into methods unfamiliar to me: purely FP, logic programming, constraint programming, etc. I guess some problems may have been solved with them simply. ) -- Name: OGINO Masanori (荻野 雅紀) E

Re: The Number of Clojure (Was: Alright, fess up, who's unhappy with clojurescript?)

2011-07-26 Thread OGINO Masanori
And I should have posted about the spec separately, right? ;; or all I have to do is to forbid myself to post anything... -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: problem with take-while

2011-07-26 Thread OGINO Masanori
-- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- 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 w

Re: problem with take-while

2011-07-26 Thread OGINO Masanori
Because take-while takes while (= (mod 20 %) 0) and (= (mod 20 3) 0) returns false. Use filter, but be careful filter will hung up with infinite sequences. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google

Re: The Number of Clojure (Was: Alright, fess up, who's unhappy with clojurescript?)

2011-07-26 Thread OGINO Masanori
Oops, I wrote a footnote not to forget giving a supplement but I forgot it. The number two was the number of Rich's Clojure implementations AFAIK. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google G

The Number of Clojure (Was: Alright, fess up, who's unhappy with clojurescript?)

2011-07-26 Thread OGINO Masanori
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

Re: :require farms in Clojure?

2011-07-23 Thread OGINO Masanori
e, on top of screen :require tells me "something in awesome is used. In order to know what is used, read below." In contrast, :use+:only tells me "foo in awesome is used." Any thoughts? Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received

Re: Namespace Docstrings?

2011-07-19 Thread OGINO Masanori
I search on JIRA, but as far as I know there is no issue discussed in this thread. Is it an issue that (resolve 'clojure.core) throws an exception? Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the G

Re: Error running Clojure 1.3 in Eclipse

2011-07-18 Thread OGINO Masanori
name *foo* suggests it's dynamic by convention, so if you added stars for emphasis, you should remove them. Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Namespace Docstrings?

2011-07-15 Thread OGINO Masanori
print-namespace-doc) internally! And... I hesitate to say but... (print-namespace-doc) seems to be removed in 1.3. So I think we also should update docstring of (doc), right? Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you ar

Re: Namespace Docstrings?

2011-07-14 Thread OGINO Masanori
actually throws an exception! Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- 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

Re: Namespace Docstrings?

2011-07-14 Thread OGINO Masanori
ws even if 1.2.1 and (resolve) can resolve classes. (resolve 'String) So all we should do is put (find-ns) pair before (resolve) pair, I think. Could any developer review? Or already fixed in master? Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received

Namespace Docstrings?

2011-07-14 Thread OGINO Masanori
peated again just now and I'm annoyed. Any thought? Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- 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 Not

Re: rand-nth throwing an exception

2011-06-12 Thread OGINO Masanori
#x27;t exists. rand-nth throws it only if (= (count coll) 0), so not-found is if-coll-is-empty, but is it valid to choose anything from empty? Where is true error? Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed t

Re: clojure.contrib.math's Docstring Seems Broken

2011-05-22 Thread OGINO Masanori
Thank you, Mark. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- 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 moderate

clojure.contrib.math's Docstring Seems Broken

2011-05-21 Thread OGINO Masanori
t of them are repetitions of docstring. However, similar thing is also in other libraries. Is there any reasonable logic? Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure"

Proposal: Ensure that c.c.lazy-xml/emit outputs XML

2011-05-04 Thread OGINO Masanori
? If not, inserting (.setOutputProperty trans "method" "xml") around 144-156 may fix it. I'm sorry if it is already fixed on the repository. Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are s

Re: 1.3 (inc alpha4)?

2011-03-09 Thread OGINO Masanori
Hello. I understand what it means. Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- 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 post

1.3 (inc alpha4)?

2011-03-06 Thread OGINO Masanori
means 1.2.1 or next milestone of 1.3. Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- 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 p

Re: better error messages > smaller stack traces

2011-02-14 Thread OGINO Masanori
10/04/amazing-feats-of-clang-error-recovery.html -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- 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

Re: Struct vs. Record: Now and Future

2011-01-27 Thread OGINO Masanori
n's code, and I feel it powerful. (and complex, a little) Then, I realize that "code as data" is great :-) Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" g

Re: Struct vs. Record: Now and Future

2011-01-27 Thread OGINO Masanori
Hello. Well, record lacks some features in struct for now, I see. And "defstructs implement IFn" means that we can use struct in the places need callbacks but record can't, right? Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You receiv

Re: Struct vs. Record: Now and Future

2011-01-27 Thread OGINO Masanori
t; Phone: 413-559-5352, Fax: 413-559-5438 > > -- > 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 p

Struct vs. Record: Now and Future

2011-01-27 Thread OGINO Masanori
Hello. I have two questions: 1. Is there any reason why we should use struct rather than record in new code without support for old Clojure? 2. If there is nothing, will struct be marked as duplicated someday? Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com

Re: Why no def- ?

2011-01-25 Thread OGINO Masanori
Hello. If def- remains for historical reason, def- may be marked as duplicated and will be moved, for example, in 1.4, 2.0 or so? Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Cl

Re: Why no def- ?

2011-01-24 Thread OGINO Masanori
is macro and I'm ashamed that I've never hit on such idea! Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure

Re: api doc for clojure/libraries

2011-01-24 Thread OGINO Masanori
utomatically, but I don't know how to do. (could anyone teach me?) Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@go

Re: Why no def- ?

2011-01-23 Thread OGINO Masanori
Hello. Sorry to cut in, but I agree with Ken, too. If defn- should be in core and def- shouldn't, it seems asymmetric. Showing why there is asymmetric design may leads to positive discussion, I think. Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com --

Re: Maven vs Ivy (or Leiningen)

2011-01-21 Thread OGINO Masanori
Make, Rake, Autotools, MSBuild, etc. I've never see the ultimate solution, but I write code and I want to build it, so I (and you?) use them. Anyway, I know that Clojure will use Maven surely. Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message

Re: Maven vs Ivy (or Leiningen)

2011-01-21 Thread OGINO Masanori
with this situation and which is not so surprising. clojuresque sounds good, so I'll see it. Although Ant -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Maven vs Ivy (or Leiningen)

2011-01-21 Thread OGINO Masanori
html Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- 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 - pl

Re: How to Build "Slim" Version of clojure-contrib

2010-12-30 Thread OGINO Masanori
ase 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 -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com --

How to Build "Slim" Version of clojure-contrib

2010-12-28 Thread OGINO Masanori
ersion is less functional, for example, it isn't good with clojure.contrib.repl-utils/source. However, in return, it may reduce footprint. Can I get the slim version with the standard build system? If not at the moment, will clojure-contrib have the way to build the slim version someday? Thank yo

Re: clojure.contrib.[duck-streams io]

2010-02-02 Thread OGINO Masanori
Thank you. I try to use use function and it works, too. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- 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

clojure.contrib.[duck-streams io]

2010-02-01 Thread OGINO Masanori
reader, writer except ImportError: from clojure.contrib.duck-streams import reader, writer Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g