https://kotlinlang.org logo
#announcements
Title
# announcements
l

louiscad

04/12/2017, 2:29 PM
Hi, does anyone know why kotlin's
lazy
implementations all extend
Serializable
?
i

ilya.gorbunov

04/12/2017, 3:04 PM
To be able to use lazy delegated properties in other serializable classes.
👍 2
l

louiscad

04/12/2017, 3:28 PM
Are you aware of anyone using it? If yes, in which type of project?
m

mikehearn

04/12/2017, 4:30 PM
yes, I've used it.
actually we use kryo but it can understand how to use classes marked as serializable
s

sreich

04/12/2017, 4:55 PM
Wow it used kryo?
How does kryo fair when it comes to backwards compatibility vs something like protobuf
m

mikehearn

04/19/2017, 10:57 AM
It has a "compatibility serialiser" but we're replacing Kryo with our own wire format for long term storage. It has worked great during the prototyping stage though. It's got good features and a decent API.