Hello, new to om and ClojureScript here so apologize for any potential stupidity.

I'm trying to create an om component with a state that is represented by a keyword. The component may have three states, for example :x, :y, :z. Looking at the typeahead example:

https://github.com/swannodette/om/blob/master/examples/typeahead/src/core.cljs

I see that representing the state with a string should be just as simple if I make the strings cloneable like in that example. But I'm wondering if it's possible to do what I've originally wanted (keywords as cursors) by making keywords cloneable as well. Something like:

```
(extend-type Keyword
  ICloneable
  (-clone [s] (keyword s))
```

But that fails with a cryptic error for me. Am I missing something obvious?

Thanks,

Rudi.

--
Note that posts from new members are moderated - please be patient with your 
first post.
--- You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to