Re: ANN: jedi-time 0.1.4

2020-02-09 Thread Sean Corfield
That is starting to work nicely with REBL for the basic datafy/nav functionality. Thank you! Once I'd verified that, I tried this: (assoc (d/datafy (java.time.LocalDateTime/now)) :format :iso) hoping that if I nav'd to the new :format key, it would "navigate" to a formatted version but it didn't.

Re: ANN: jedi-time 0.1.4

2020-02-09 Thread dimitris
Hi again Sean and folks, I've had another stub at this, mostly by flattening the model but also by separating navigation from query/comparing/formatting etc. Most datafied representations are now navigable on their keys (returning either a Java object or some base value), and some on certain

Re: ANN: jedi-time 0.1.4

2020-02-09 Thread Sean Corfield
Yes, I agree with all of that I think. For nested navigation, consider that (get-in data [:year :month) is equivalent to (get data :month (get data :year)) so you could nav one step at a time. Calling nav (& then datafy) on the intermediate steps would just bring you back to the data world at the

Re: ANN: jedi-time 0.1.4

2020-02-09 Thread dimitris
Hi Sean, I'm back home and trying to understand/internalize this...Unfortunately, this kind of (flat & arg-less) navigation is not going to be very useful for the majority of java.time (datafied) objects. That is for two reasons... First of all the datafied maps I'm returning are nested. This