kevinmost
11/10/2016, 5:59 PMkevinmost
11/10/2016, 6:00 PMext.deps = [
gson: "com.google.code.gson:gson:2.7",
okhttp: "com.squareup.okhttp3:okhttp:3.4.1",
]
kevinmost
11/10/2016, 6:00 PMcedric
11/10/2016, 9:30 PMkevinmost
11/10/2016, 9:35 PMvoddan
11/10/2016, 10:59 PMkevinmost
11/10/2016, 11:26 PMnatpryce
11/11/2016, 12:42 AMkevinmost
11/11/2016, 12:59 AMchristophsturm
11/11/2016, 11:13 AMrocketraman
11/11/2016, 3:08 PM?:
be evaluated on an argument of an infix function call, or on the call's result? From general:
>>> val m = mutableMapOf<String, String>()
>>> "a" to m["b"] ?: "was null"
(a, null)
>>> "a" to (m["b"] ?: "was null")
(a, was null)
I wasn't expecting the first result. Perhaps I should have but it seemed obvious to me that the ?: "was null"
would be applied to m["b"]
and not "a" to m["b"]
. The response on #general was that the first result was obvious, but is it?yole
11/11/2016, 3:09 PMrocketraman
11/11/2016, 3:10 PMyole
11/11/2016, 3:10 PMrocketraman
11/11/2016, 3:10 PMrocketraman
11/11/2016, 3:12 PMrocketraman
11/11/2016, 3:13 PMList<Pair<String, String>>
, found List<Serializable>
yole
11/11/2016, 3:13 PMrocketraman
11/11/2016, 3:14 PMpaulblessing
11/11/2016, 3:14 PMI see IDE warnings for this currently▾
paulblessing
11/11/2016, 3:15 PMrocketraman
11/11/2016, 3:16 PMmap
surrounding that expression. It will hide the error you see above...paulblessing
11/11/2016, 3:17 PMrocketraman
11/11/2016, 3:18 PMrocketraman
11/11/2016, 3:20 PMmap
is not enough to cause what I was seeing:rocketraman
11/11/2016, 3:20 PMPasted image at 2016-11-11, 10:20▾
rocketraman
11/11/2016, 3:20 PMrocketraman
11/11/2016, 3:21 PMrocketraman
11/11/2016, 3:21 PMPasted image at 2016-11-11, 10:21▾
paulblessing
11/11/2016, 3:23 PM