CLOVIS
06/22/2020, 8:45 AMValidated, so it's possible to get the reason why it failed?Imran/Malic
06/22/2020, 1:30 PMValidated . With the Ide support we ship in Meta, Users can see in real time, why their input fails, given the set of refinements that are set.CLOVIS
06/22/2020, 6:42 PMas? to validate user data?Imran/Malic
06/22/2020, 7:40 PMfrom(a : A): B? , which is what you maybe implying.
So you can do:
TwitterHandle.from("@SiempreJuan")Imran/Malic
06/22/2020, 7:46 PMNull ,as it is more succinct to Kotlins goal to remove unnecessary wrappers. The existence of a refined value corresponds to the value not being Null , which is Valid or Invalid in the Validated world. Only that those checks happen at compile time and a zero-cost abstraction over the type A one cares about.Imran/Malic
06/22/2020, 7:52 PMmap or mapNotNull or a failFast strategy corresponds to vanilla Kotlin working with nullable types.CLOVIS
06/23/2020, 11:40 AMfrom function at runtime, is there a way to get the message of why it failed? I get that at compile-time it will show up in the IDE, but it could be interesting to know why something failed at runtime to display a message to the user or something similarraulraja
06/23/2020, 2:20 PMraulraja
06/23/2020, 3:13 PM