desseim
10/09/2015, 10:03 AM-1
on absence rather than null
?yoavst
10/09/2015, 10:05 AMdesseim
10/09/2015, 10:16 AMyoavst
10/09/2015, 10:18 AMyoavst
10/09/2015, 10:19 AMdh44t
10/09/2015, 10:19 AMdh44t
10/09/2015, 10:19 AMdesseim
10/09/2015, 10:24 AMdesseim
10/09/2015, 10:25 AMnull
though, is it just me ?dh44t
10/09/2015, 10:28 AMapatrida
10/09/2015, 10:32 AMindexOfOrNull
, it's free and encouraged to make things the way you want. There are a lot of posts where people want different things. Which is great, readability and coding styles vary. Kotlin is designed so you can extend API as you need. If things happen a lot in the wild, analysis of public code tells the team what changes to make (maybe) in stdlib. So to get changes to stdlib, it's not about talking here; it's about doing it, many people doing it, and pull requests or youtrack tickets.hastebrot
10/09/2015, 11:44 AMdgreenhalgh
10/09/2015, 1:16 PMcedric
10/09/2015, 1:30 PMl.indexOfOrNull("foo").let { // do something }
over testing against -1
yoavst
10/09/2015, 1:48 PMindexOf { }
apatrida
10/09/2015, 1:59 PMwithIndexOf(something) { ... do something with the index }
apatrida
10/09/2015, 1:59 PMelse { ... }
on ityoavst
10/09/2015, 3:12 PMBoolean.else(func: () -> Unit) { if (!this) func() }
dh44t
10/09/2015, 3:18 PMalexander.asanov
10/09/2015, 3:32 PM`else`
apatrida
10/09/2015, 3:35 PMotherwise
apatrida
10/09/2015, 3:36 PMotherwise
and therefore only one global allocation.jasoet-gdp
10/09/2015, 9:52 PMFuture
just like scala?ilya.gorbunov
10/09/2015, 9:57 PMjasoet-gdp
10/12/2015, 2:28 AMTry<T>
on kotlin? is it possible to write composeable code just like Scala (again)?cedric
10/12/2015, 2:55 AMcedric
10/12/2015, 2:56 AMTry
and similar encourage)jasoet-gdp
10/12/2015, 2:58 AMTry<T>
every method that returns value enclosing with Try
i know that i need to handle that.jasoet-gdp
10/12/2015, 2:58 AMOption<T>
and Try<T>
i can use map, flatMap to compose the codecedric
10/12/2015, 2:58 AMthrows
wherever you have to