xxfast
09/12/2022, 12:34 AMMichael Paus
09/12/2022, 10:02 AMval storeOf: KStore<Pet> = store("path/to/file")
be
val store: KStore<Pet> = storeOf("path/to/file")xxfast
09/12/2022, 10:04 AMval store: KStore<Pet> = store("path/to/file")Michael Paus
09/12/2022, 10:06 AMstoreOf(…), shouldn’t it?xxfast
09/12/2022, 10:07 AMstore()xxfast
09/12/2022, 10:08 AMxxfast
09/12/2022, 10:10 AMlistOf setOf etc. But this doesn’t really read well when it is just a path
val store: KStore<Pet> = storeOf(path)Michael Paus
09/12/2022, 10:12 AMval petStore: KStore<Pet> = store("path/to/file")
in order to avoid any confusion. In practice you will mostly have several different stores anyway.
(I still like the storeOf variant though 😉)xxfast
09/12/2022, 10:37 AMstoreOf