> 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
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
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
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
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
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
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
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
> 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
> 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
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
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 (荻野 雅紀
; 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
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
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
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
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
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
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.
--
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
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
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
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
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
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
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
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
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
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
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
#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
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
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"
?
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
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
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
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
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
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
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
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
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
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
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
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
--
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
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
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
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
--
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
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
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
52 matches
Mail list logo