Re: String wrapper that supports meta-data...

2013-01-27 Thread Stuart Sierra
On Wednesday, January 9, 2013 4:23:06 PM UTC-5, Jim foo.bar wrote: > hehehe...I'm really stupid aren't I?:-[ > Not at all. :) It takes time to get used to all the different ways things can be used, for example the fact that records support metadata. -S -- -- You received this message beca

Re: String wrapper that supports meta-data...

2013-01-09 Thread Jim - FooBar();
hehehe...I'm really stupid aren't I?:-[ thanks Stuart... Jim On 09/01/13 21:11, Stuart Sierra wrote: You could also do: (defrecord MString [string]) -S -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: String wrapper that supports meta-data...

2013-01-09 Thread Stuart Sierra
You could also do: (defrecord MString [string]) -S -- 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

String wrapper that supports meta-data...

2013-01-09 Thread Jim foo.bar
Hi all, I often find myself wanting to attach meta-data to built-in Java classes and particularly to the 'String' class. In a text-mining and NLP context, it is very useful for example to have a dictionary of strings where each string 'knows' its synonyms...Of course one can get around that