tse
11/02/2016, 10:41 AMavolkmann
11/02/2016, 10:56 AMadambl4
11/02/2016, 10:56 AMavolkmann
11/02/2016, 10:57 AMdragas
11/02/2016, 11:45 AMhackerham
11/02/2016, 11:47 AMhackerham
11/02/2016, 11:47 AMhackerham
11/02/2016, 11:48 AMevanchooly
11/02/2016, 12:19 PMmaxmil
11/02/2016, 3:44 PMmaxmil
11/02/2016, 3:46 PMavolkmann
11/02/2016, 4:38 PMjanvladimirmostert
11/02/2016, 6:47 PMgroostav
11/02/2016, 7:27 PMlowerBound = bound?.start ?: `-∞`
upperBound = bound?.endInclusive ?: `+∞`
groostav
11/02/2016, 7:27 PMval `+∞` = Double.POSITIVE_INFINITY`
groostav
11/02/2016, 7:30 PMnoctarius
11/02/2016, 9:31 PMRuckus
11/02/2016, 10:17 PMmiha-x64
11/02/2016, 10:50 PM<
and >
are allowed in IDEA's Rename dialog, but considered illegal characters by IDEA's code analysis. So, you can't name a method <init>
or <clinit>
😐damian
11/02/2016, 10:52 PM<foo
, >
, <><><>>>>
are all invaliddamian
11/02/2016, 10:55 PMval ∞ = ...
damian
11/02/2016, 10:56 PMRuckus
11/03/2016, 4:19 AMbamdmux
11/03/2016, 6:08 AMpawel.urban
11/03/2016, 8:19 AMprivate fun doSomeAction() = {
// Very important code here.
}
private fun doSomeAction() {
// Very important code here.
}
Trick or treat 🙂 It’s hard to see an error here. In the first example it returns () -> Unit
in the second just an Unit
. Maybe it would be worth considering if the compiler/lint would warn us about the first scenario? Only on case when there is no assignment in the function usage.spand
11/03/2016, 8:27 AMcode has no effect
kindspand
11/03/2016, 8:28 AMavolkmann
11/03/2016, 8:47 AMpawel.urban
11/03/2016, 9:04 AMhappy15
11/03/2016, 9:13 AM