nimtiazm
04/19/2017, 2:56 PMnimtiazm
04/19/2017, 3:01 PMconst
fun parameter would be necessary to not copy the entire value-object. Unless Kotlin goes COW style value-objects without requiring any specification on fun parameternimtiazm
04/19/2017, 3:03 PMinline
and crossinline
on lambdas for performance reason, It’d be more orthogonal if it allows const
on params similarlyyole
04/19/2017, 4:37 PMcedric
04/19/2017, 5:29 PMevanchooly
04/19/2017, 6:41 PMmg6maciej
04/19/2017, 7:52 PMsealed interface Node { }
in that article. 😭 I cannot do that in K yet.orangy
mg6maciej
04/19/2017, 7:55 PMsealed class Node
?orangy
mg6maciej
04/19/2017, 7:57 PMmg6maciej
04/19/2017, 7:59 PMsealed class
for now. Compile errors due to exhaustiveness save a few seconds when I add new type.mg6maciej
04/19/2017, 8:02 PMinternal
and you just "couldn't" add subclass in a different module.groostav
04/20/2017, 4:21 AMgroostav
04/20/2017, 4:21 AMgroostav
04/20/2017, 4:22 AMwhen
statement that enumerated all of the node types, and would force a compiler error when a new node type was added. Combine that with a couple other kotlin techniques to reduce boiler plate, and its now enormously difficult to break the new implementation i have in kotlin.groostav
04/20/2017, 4:24 AMgroostav
04/20/2017, 4:24 AMsksk
04/20/2017, 9:03 AMsksk
04/20/2017, 9:04 AMorangy
orangy
Ruckus
04/20/2017, 9:18 AMsksk
04/20/2017, 9:29 AMsksk
04/20/2017, 9:30 AMkirillrakhman
04/20/2017, 9:55 AMsksk
04/20/2017, 9:57 AMkirillrakhman
04/20/2017, 10:03 AMkirillrakhman
04/20/2017, 10:04 AMkirillrakhman
04/20/2017, 10:06 AM