Re: regex in edn?

2019-03-29 Thread Ikuru Kanuma
Thanks for the reply! Glad to have confirmations.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


regex in edn?

2019-03-29 Thread Ikuru Kanuma
Hi, just writing this out of pure curiosity.

Background:

1. I thought I could write regex literals like this in an edn file 
containing configurations:

:some-parameter #"foo"

But reading this with e.g. clojure.edn/read-string causes an error

No dispatch macro for: "

2. I thought I can introduce my own reader tag 
https://github.com/duct-framework/core/pull/21 but then thought it would be 
nice if there was a #regex "foo" reader tag defined in clojure itself.

3. Also noticed that this round trip does not work:

(clojure.edn/read-string (pr-str #"foo"))

4. The idea of a regex tag has been declined 
https://github.com/edn-format/edn/issues/26

I agree it is such really minor itch to scratch, but is the recommended 
approach to use a custom reader tag if one wishes to convey regex over wire?

Sorry for the attention and thanks!



-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Leiningen template for pure Clojure/ClojureScript project ?

2017-07-25 Thread Ikuru Kanuma
Hi Khalid, I really find the mies template good for minimal cljs setup.

https://github.com/swannodette/mies

Main feature is that builds can be done from shell scripts that in turn 
point to .clj files that directly use the ClojureScript build API without 
any Leiningen/Boot stuff.
I highly recommend it.

Regards,

Ikuru

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clarification on # as valid symbol character

2016-11-07 Thread Ikuru Kanuma
Hi Steven!

I think all of those cases are covered in the reader reference' reader 
dispatch section:
http://clojure.org/reference/reader#_dispatch

Basically when the reader encounters a '#' it does the appropriate dispatch 
action depending on what follows.
As it is a special character handled by the reader it would not make a 
valid symbol character (To answer you original question).

Ikuru

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there an easy way for s/keys spec to work against both qualified/unqualiffied keys at the same time?

2016-10-16 Thread Ikuru Kanuma
Mauricio, thanks for the response!
I agree that that gets what I asked for done, but that solution is in 
essence writing the same 
qualified/unqualified version of the spec twice and sounded redundant, 
which lead to my question.
I guess it is what it is in that case...

Leon, thanks for the response.
what I meant to say by 'exclusive' is the 'same'(difference in namespaced 
or not)
keyword that get checked by req/req-un options.
i.e. req only checks for the qualified version and req-un only checks for 
the unqualified version.
Sorry, should have been clearer.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is there an easy way for s/keys spec to work against both qualified/unqualiffied keys at the same time?

2016-10-13 Thread Ikuru Kanuma
Hi,

I was reading the official spec guide's explanation for the s/keys macro, 
played around with it a bit,
and was a little surprised that the :req and :req-un are exclusive specs as 
illustrated below:

(ns my.ns
  (:require [clojure.spec :as s]))

(s/def ::some-number int?)
(s/def ::map-with-numbers1 (s/keys :req [::some-number]))
(s/valid? ::map-with-numbers1 {::some-number 3}) => true
(s/valid? ::map-with-numbers1 {:some-number 3}) => false

(s/def ::map-with-numbers2 (s/keys :req-un [::some-number]))
(s/valid? ::map-with-numbers2 {::some-number 3}) => false
(s/valid? ::map-with-numbers2 {:some-number 3}) => true

In other words, would there a convenient way to specify a spec that would 
work for both qualified/unqualified keys at the same time?
;;Want a spec that validates as follows
(s/valid? ::map-with-numbers {::some-number 3}) => true
(s/valid? ::map-with-numbers {:some-number 3}) => true

Regards,

Ikuru

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clojure support for Visual Studio Code

2016-09-19 Thread Ikuru Kanuma
Thanks for the tips, Andry & Michael!

Will investigate the rabbit hole deeper when I have time (Tried you 
suggestion but no success...),
but thanks Andrey for releasing it into the market place because now
I can try it out in the mean while.

Cheers,

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clojure support for Visual Studio Code

2016-09-17 Thread Ikuru Kanuma
Thanks for the reply Andrey!

I guess the installation part is then something specific to the ubuntu 
flavor(I am using ubuntu-mate) I am using/ what ever it could be.
(I also did try to open the file from the menu, but same story as dragging 
and dropping).
Also my vs-code installation is a bit suspicious, so I will look up other 
trouble shooting resources.
Thanks anyways!

Regarding the dependency part, I meant that in cider(on emacs)
I do not have to specify any of those dependencies by my self because it is 
handled when I start a repl from cider.
https://github.com/clojure-emacs/cider/pull/1552 and thought it would be a 
great improvement.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clojure support for Visual Studio Code

2016-09-15 Thread Ikuru Kanuma
Hi Andrey, thanks for sharing this great work!

- I did want to try it out on an Ubuntu machine, but simply dragging and 
dropping seemed to not work.
Could you perhaps point to an alternative way to install extensions (First 
time ever touching vs code, so it is hard for me to even google how to do 
it)?

- Cider injects its own nrepl middleware. Would that be hard to achieve?
It would greatly make things easy for newbies.

Ikuru

On Thursday, September 15, 2016 at 8:17:38 PM UTC+9, Andrey Lisin wrote:
>
> Hey guys,
>
> I've been working on Clojure support for Visual Studio Code text editor 
> for a while. The first version is very close to the point when it can be 
> published to Visual Studio Code marketplace, but I would like to test it a 
> bit more before. Maybe there are Visual Studio Code uses here who can try 
> the extension and give feedback.
>
> Features extension supports:
>
> - code completion
> - interaction with REPL
> - go to definition
> - documentation hints
>
> The extension can be obtained from its GitHub page (
> https://github.com/avli/clojureVSCode/releases). Download the vsix file 
> and drag-and-drop it to the Visual Studio Code. The extension relies on 
> cider-nrepl, so don't forget to add it to the dependencies list. To connect 
> to nREPL use "Connect to nREPL" command from the command palette. More 
> information is available on the extension's GitHub page.
>
> Hope it be useful for someone.
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.