Discussion:
Confused by a bit of syntax-- Clojure(script) or Hiccup?
Randy J. Ray
2018-11-20 19:27:19 UTC
Permalink
I've been trying to read through and understand the examples in the reagent
repo, and I've come across something that I just don't quite get:

:>

I've looked over all the docs for Clojure, Clojurescript and Hiccup, but
find no reference to this. It appears as the first element in vectors in a
context that leads me to think it's part of Hiccup. But I'm expecting
keywords like ":div", ":p", etc. The ":>" sequence, I guess I'm just not
quite getting it?

Randy
--
Randy J. Ray - ***@gmail.com - twitter.com/rjray
Silicon Valley Scale Modelers: http://www.svsm.org
San Jose, CA
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to ***@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+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin Smith
2018-11-20 20:43:59 UTC
Permalink
:> is a valid Clojure keyword, but has no special meaning on its own.

In Reagent's version of the Hiccup DSL, :> introduces a Reagent component
defined from a React component
https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md#creating-reagent-components-from-react-components
Post by Randy J. Ray
I've been trying to read through and understand the examples in the
:>
I've looked over all the docs for Clojure, Clojurescript and Hiccup, but
find no reference to this. It appears as the first element in vectors in a
context that leads me to think it's part of Hiccup. But I'm expecting
keywords like ":div", ":p", etc. The ":>" sequence, I guess I'm just not
quite getting it?
Randy
--
Silicon Valley Scale Modelers: http://www.svsm.org
San Jose, CA
--
You received this message because you are subscribed to the Google Groups "Clojure" group.
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
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
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to ***@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+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin Smith
2018-11-20 20:48:56 UTC
Permalink
I'll add that I knew this, but it took me longer than I expected to
actually find the documentation to point to. I don't know how a new user of
the library would be expected to discover what that symbol means.
Post by Justin Smith
:> is a valid Clojure keyword, but has no special meaning on its own.
In Reagent's version of the Hiccup DSL, :> introduces a Reagent component
defined from a React component
https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md#creating-reagent-components-from-react-components
Post by Randy J. Ray
I've been trying to read through and understand the examples in the
:>
I've looked over all the docs for Clojure, Clojurescript and Hiccup, but
find no reference to this. It appears as the first element in vectors in a
context that leads me to think it's part of Hiccup. But I'm expecting
keywords like ":div", ":p", etc. The ":>" sequence, I guess I'm just not
quite getting it?
Randy
--
Silicon Valley Scale Modelers: http://www.svsm.org
San Jose, CA
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
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
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to ***@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+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Randy J. Ray
2018-11-20 21:08:11 UTC
Permalink
Thanks for the pointer! My mistake was looking for this in the source-- had
I ack'd over the doc/ directory I would have found it!

Randy
Post by Justin Smith
I'll add that I knew this, but it took me longer than I expected to
actually find the documentation to point to. I don't know how a new user of
the library would be expected to discover what that symbol means.
Post by Justin Smith
:> is a valid Clojure keyword, but has no special meaning on its own.
In Reagent's version of the Hiccup DSL, :> introduces a Reagent component
defined from a React component
https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md#creating-reagent-components-from-react-components
Post by Randy J. Ray
I've been trying to read through and understand the examples in the
:>
I've looked over all the docs for Clojure, Clojurescript and Hiccup, but
find no reference to this. It appears as the first element in vectors in a
context that leads me to think it's part of Hiccup. But I'm expecting
keywords like ":div", ":p", etc. The ":>" sequence, I guess I'm just not
quite getting it?
Randy
--
Silicon Valley Scale Modelers: http://www.svsm.org
San Jose, CA
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
Note that posts from new members are moderated - please be patient with
your first post.
To unsubscribe from this group, send email to
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
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Clojure" group.
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
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
For more options, visit https://groups.google.com/d/optout.
--
Randy J. Ray - ***@gmail.com - twitter.com/rjray
Silicon Valley Scale Modelers: http://www.svsm.org
Sunnyvale, CA
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to ***@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+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Randy J. Ray
2018-11-21 17:52:02 UTC
Permalink
I've also discovered that ":<>" isn't even in the docs/ directory at all.
Fortunately, the couple of places it is used in the examples document it as
shorthand for React.Fragment.

Randy
Post by Justin Smith
I'll add that I knew this, but it took me longer than I expected to
actually find the documentation to point to. I don't know how a new user of
the library would be expected to discover what that symbol means.
Post by Justin Smith
:> is a valid Clojure keyword, but has no special meaning on its own.
In Reagent's version of the Hiccup DSL, :> introduces a Reagent component
defined from a React component
https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md#creating-reagent-components-from-react-components
Post by Randy J. Ray
I've been trying to read through and understand the examples in the
:>
I've looked over all the docs for Clojure, Clojurescript and Hiccup, but
find no reference to this. It appears as the first element in vectors in a
context that leads me to think it's part of Hiccup. But I'm expecting
keywords like ":div", ":p", etc. The ":>" sequence, I guess I'm just not
quite getting it?
Randy
--
Silicon Valley Scale Modelers: http://www.svsm.org
San Jose, CA
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
Note that posts from new members are moderated - please be patient with
your first post.
To unsubscribe from this group, send email to
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
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Clojure" group.
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
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
For more options, visit https://groups.google.com/d/optout.
--
Randy J. Ray - ***@gmail.com - twitter.com/rjray
Silicon Valley Scale Modelers: http://www.svsm.org
Sunnyvale, CA
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to ***@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+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...