Kristian Nedrevold
11/25/2022, 5:50 PMsimon.vergauwen
11/26/2022, 3:36 PMCore
and moved to arrow-option
separately so it's an explicit opt-in.
It will not be removed, since Project Reactor and Spring users rely on it quite often. Similarly for nested null problem, which is niche in domain code.Cody Mikol
11/26/2022, 8:22 PMuserAge: Option<Int?>
/user?age=null -> userAge = Option.some(null)
/user?age=33 -> userAge = Option.some(21)
/user -> userAge = Option.none()
It's been really useful to represent T? as something that may or may not be present.
If it gets moved into another package will support for it continue, or would you suggest moving away from relying on it?Kristian Nedrevold
11/26/2022, 9:25 PMsimon.vergauwen
11/26/2022, 9:25 PMnull
inside of Mono
or Flux
.simon.vergauwen
11/26/2022, 9:27 PMKristian Nedrevold
11/26/2022, 9:30 PMdata class Person(
val name: String,
val age: Age?)
@JvmInline
value class Age(val age: Int?)
simon.vergauwen
11/26/2022, 9:31 PMKristian Nedrevold
11/26/2022, 9:34 PMKristian Nedrevold
11/26/2022, 9:41 PMvalue class NullableParameter<T>(val parameter: T?)
simon.vergauwen
11/27/2022, 8:23 AMOption
, otherwise it cannot work on the JVM level 🤔 I.e. boxing will be applied almost alwaysKristian Nedrevold
11/27/2022, 9:02 AM