I have an application that will read in a large number of structures from a file. those structures will be used throughout the application to produce additional data etc. since they are "user" configurable, it would be nice to know where they come from should one of them start misbehaving. the type of metadata the compiler associates with function definitions etc. would be very valuable. if I'm reading my structures in with (read) is there anyway to get it to attach filename and line-number etc. metadata?
for example if I have something like this: (defn read-obj [file] (with-in-reader file (read))) it would be nice if the object returned would be tagged with file- relavent metadata. (this example shows only reading one from the file, but imagine reading many from one file. i know I can just (with-meta) the file name onto the result, but there is lots of other meta data the compiler can already produce, it'd be nice to just grab all that for free) Kevin -- 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