adeln
03/09/2017, 1:33 PMyole
03/09/2017, 4:47 PM?
doesn't exist by itselfmarcinmoskala
03/11/2017, 8:32 PMmarcinmoskala
03/15/2017, 12:06 PMmg6maciej
03/15/2017, 12:11 PMvoddan
03/22/2017, 12:32 PMcodeslubber
03/26/2017, 3:14 PMcodeslubber
03/26/2017, 4:43 PMmg6maciej
04/01/2017, 4:18 PMmg6maciej
04/01/2017, 9:10 PMcedric
04/02/2017, 5:18 AMbachhuberdesign
04/08/2017, 5:26 PMlateinit private var
or private lateinit var
?bamdmux
04/27/2017, 5:26 AMMyClass.()-> Unit
have a typealias MyClassExtension
or if you have Generic<T>
typealiases would be IntGeneric
or StringGeneric
miha-x64
05/04/2017, 8:01 AMyole
05/24/2017, 5:53 PMmg6maciej
05/24/2017, 5:55 PMkirillrakhman
05/24/2017, 6:05 PMAvoid using multiple labeled returns in a lambda. Consider restructuring the lambda so that it will have a single exit point. If that's not possible or not clear enough, convert the lambda into an anonymous function.if the lambda doesn't close over any locals, why not a proper method?
mg6maciej
05/24/2017, 6:22 PMkevinmost
05/24/2017, 8:25 PMkevinmost
05/25/2017, 6:02 PMwhen
whose result you don't care about is exhaustive? I could store it into a variable (and explicitly suppress the unused lint warning), or chain an empty, unused .run {}
on it, presumably. Anyone have any less weird ways?yole
05/26/2017, 2:58 PMreggar
05/26/2017, 3:49 PMcedric
05/26/2017, 3:52 PMkevinmost
05/26/2017, 8:37 PMstatic
stuff usually going at the top in Java though
Where does everyone usually put it? ⬆️ or ⬇️mg6maciej
05/27/2017, 7:25 PMelect
06/02/2017, 7:56 AMif - else
with the code indented based on the position of the if
?
val list = if(student != null && student.passing)
getListForStudent(student)
else
getStandardList()
feniix
06/12/2017, 11:06 PMfun get_currency_value(currency: String): String {
val r = khttp.get("<https://api.coinbase.com/v2/exchange-rates?currency=$currency>")
when (r.statusCode) {
200 -> return r.jsonObject.getJSONObject("data").getJSONObject("rates").getString("USD")
else -> return ""
}
}
mg6maciej
06/14/2017, 12:55 PMfun assertAll
would go into AssertAll.kt
.kevmoturi
07/06/2017, 2:34 PMbachhuberdesign
07/10/2017, 3:11 PMbachhuberdesign
07/10/2017, 3:11 PMvoddan
07/11/2017, 8:47 AM