-
I'm searching for guidance on what "best practise" for "LocalDate" might be. I have a use case, where the most granular time unit I care about is a day. I'm not really worried about timezones. I'd prefer my case classes to reference LocalDate as opposed to timestamp if I can - because it shaves off a lot of mental overhead. I recongise this is a niche usecase - am guessing this won't be like that time I blindly hit on first class support for UUIDs :-)... I can think of a couple of ways of managing this... but I'm wondering if there's an ideal one I'm missing.
I can think of disadvantages to both of these... which I'm happy to delineate, but guessing you already see them. Before I go off and shoot myself in the foot, is there an obviously better solution you'd be willing to hint at ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @Quafadas, First a fall, a massive thank you for asking your extremely relevant questions in discussions in github discussion. I've linked your questions time and again to people asking similar questions. So, unfortunately, Option 2 is gonna be the best practice at this point in time. We have however started thinking about the (very common) problem of users wanting to get support for custom types, and have some ideas. |
Beta Was this translation helpful? Give feedback.
-
@Quafadas a little update : we've just released version 0.15.0, which adds this feature, which you could now use to solve this. Have fun 😄 . |
Beta Was this translation helpful? Give feedback.
@Quafadas a little update : we've just released version 0.15.0, which adds this feature, which you could now use to solve this. Have fun 😄 .