I think reifying character output streams via an IWriter protocol sounds like a good idea. Are you concerned about anything in particular wrt. to introducing the IWriter protocol? If the protocol is Clojure destined we may want to consider a more specific name to distinguish it from byte oriented output streams. (ICharacterWriter? IStringWriter?)
At this pre-1.0 stage in development I'm not sure how generous a deprecation policy we should feel obligated to deliver. Opinions? In this case it seems like leaving the old protocol in place is low cost but it does need to be removed in finite time. Perhaps a few months with the compiler issuing deprecation warnings when IPrintable is used? Deprecation warnings could, via the metadata map, be extended to include the date the feature would be removed and a url with instructions on how to migrate code. On Thu, Aug 30, 2012 at 10:27 AM, David Nolen <dnolen.li...@gmail.com>wrote: > The promise of ClojureScript data structures depends heavily on the > performance of serialization: pr-str and the reader. I've done some > work on the reader and Evan has kindly created some patches for > pr-str. His work speeds up pr-str by quite a bit especially on slower > JS engines like <= IE8. However it also brings up some larger > questions - how to deprecate IPrintable as well as adding a new > IWriter protocol. IWriter addresses printing but also output in > general which will be useful for people working in non-browser > contexts. > > http://dev.clojure.org/jira/browse/CLJS-340 > > Feedback appreciated! > > Thanks, > David > > -- > You received this message because you are subscribed to the Google Groups > "Clojure Dev" group. > To post to this group, send email to clojure-...@googlegroups.com. > To unsubscribe from this group, send email to > clojure-dev+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/clojure-dev?hl=en. > > -- 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