Would it be considered an appropriate use of defprotocol and deftype to do the following, or have I got the wrong idea?
(defprotocol Weather (location [feed] "Extracts the location from the feed.") (temperature [feed] "Extracts the temperature from the feed."))
(With many more methods, of course.)
And then, depending on the API I'm extracting the data from, to create a (def)type for each? e.g. Yahoo Weather
Finally, assuming the response to the previous question is yes, would this now be considered the best way to achieve the aim?
I could probably have made this thread personal by addressing Raynes directly, but just in case...
This post has been edited by YamNad: 06 April 2010 - 05:18 PM