Open Debrugger opened 5 years ago
Thanks for the suggestion. Instead of changing the type of id
, which I think is probably an extreme change, did you look into solving this using extension functions?
-Uwe
koltin value class provied a way of zero cost abstraction, is there still any plan to support kotlin value class?
@Delsart This is unrelated. Answered in #1189. I'll hide our comments to not confuse other users.
Inline classes are a good way to add compile time type safety to database queries. They would prevent error caused by querying a box with the wrong id type.
And the unsafe call only crashes if you're lucky, other times it might just seem like the database is returning garbage data, since you queried it with the wrong ids.