cedric
03/23/2016, 1:11 AMeski
03/23/2016, 1:12 AMeski
03/23/2016, 1:16 AMjian
03/23/2016, 1:17 AMimport java.util.ArrayList
fun main(args: Array<String>) {
val names = listOf<String>()
val results = names.reduce { name1, name2 ->
"${name1} ${name2}"
}
print(results)
}
Exception in thread "main" java.lang.UnsupportedOperationException: Empty iterable can't be reduced.at Simplest_versionKt.main(Simplest version.kt:16) WTF…. The compiler not have any error at compiler time…… when I have a exception.
kevinmost
03/23/2016, 1:26 AMcommon
)?eski
03/23/2016, 1:28 AMeski
03/23/2016, 1:29 AMeski
03/23/2016, 1:35 AMkevinmost
03/23/2016, 2:42 AMyole
03/23/2016, 7:44 AMyole
03/23/2016, 7:44 AM””[0]
which will also fail with an exception at runtimevoddan
03/23/2016, 7:56 AMvoddan
03/23/2016, 7:57 AMvar foo: Int by lazy {8}
rightfully complainsirus
03/23/2016, 7:59 AMdierre
03/23/2016, 10:06 AMvoddan
03/23/2016, 10:16 AMmglukhikh
03/23/2016, 10:46 AMaaverin
03/23/2016, 1:16 PMudalov
eddie
03/23/2016, 1:49 PMeddie
03/23/2016, 1:50 PM-1
makes it look like a packaging fix, IMOmglukhikh
03/23/2016, 2:06 PMeddie
03/23/2016, 2:10 PM-#
suffix. I’ve never understood the reasoning behind separate schemes for hotfixes as opposed to normal patch versions; a hotfix is still a patch release and, especially considering the importance that “hotfix” implies, should be presented like any other patch release would be.mglukhikh
03/23/2016, 2:26 PMabreslav
03/23/2016, 2:52 PMmikehearn
03/23/2016, 2:53 PMkirillrakhman
03/23/2016, 2:58 PMjw
03/23/2016, 2:59 PMjw
03/23/2016, 3:00 PMjw
03/23/2016, 3:00 PM