kittinunf
01/24/2019, 7:15 PMkotlin.Result
have the Error type, my Result would have been deprecated …Derk-Jan Karrenbeld
01/24/2019, 7:18 PMkittinunf
01/24/2019, 7:20 PMsnowe
01/24/2019, 7:34 PMDerk-Jan Karrenbeld
01/24/2019, 7:36 PMsnowe
01/24/2019, 7:37 PMDerk-Jan Karrenbeld
01/24/2019, 7:39 PMDerk-Jan Karrenbeld
01/24/2019, 7:39 PMThe rationale behind these limitations is that future versions of Kotlin may expand and/or change semantics of functions that return Result type and null-safety operators may change their semantics when used on values of Result type. In order to avoid breaking existing code in the future releases of Kotin and leave door open for those changes, the corresponding uses produce an error now. Exceptions to this rule are made for carefully-reviewed declarations in the standard library that are part of the Result type API itself.
Derk-Jan Karrenbeld
01/24/2019, 7:40 PMDerk-Jan Karrenbeld
01/24/2019, 7:41 PMResult<T> is implemented by an inline class and is optimized for a successful case. Success is stored as a value of type T directly, without additional boxing, while failure exception is wrapped into an internal Result.Failure class that is not exposed through binary interface and may be changed later.
Nikky
01/24/2019, 8:45 PMJSON
type in allcaps which should no longer be imported at allNikky
01/24/2019, 8:48 PMNikky
01/24/2019, 9:00 PMCannot access class 'kotlinx.serialization.json.JSON'. Check your module classpath for missing or conflicting dependencies
Nikky
01/24/2019, 9:03 PM+--- com.github.kittinunf.fuel:fuel-kotlinx-serialization:2.0.0
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.20 (*)
| +--- com.github.kittinunf.fuel:fuel:2.0.0 (*)
| \--- org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.9.1 -> 0.10.0 (*)
Nikky
01/24/2019, 9:04 PMNikky
01/24/2019, 9:05 PMNikky
01/24/2019, 9:43 PMkittinunf
01/24/2019, 10:43 PMNikky
01/24/2019, 11:42 PMNikky
01/24/2019, 11:42 PMNikky
01/24/2019, 11:43 PMNikky
01/24/2019, 11:44 PMDerk-Jan Karrenbeld
01/25/2019, 12:37 AMNikky
01/25/2019, 12:41 AMNikky
01/25/2019, 12:52 AMNikky
01/25/2019, 12:53 AMNikky
01/25/2019, 12:53 AMDerk-Jan Karrenbeld
01/25/2019, 12:59 AMand does Fuel have anything that automatically handles caching files using ETag values ? (edited)Via HttpUrlConnection cache. So outside of fuel but yes that works.
Derk-Jan Karrenbeld
01/25/2019, 12:59 AMcan someone remind me whats the difference between httpDownload and httpGet ?Download allows you to get it to a stream (== file or whatever) and THEN get it as response as well
Derk-Jan Karrenbeld
01/25/2019, 12:59 AM