Czar
12/07/2015, 1:48 PM@SuppresWarnings
does not influence the behaviour in runtime, it only influences compiler and IDE warnings output.yole
12/07/2015, 1:48 PMmplatvoet
12/07/2015, 1:49 PMyole
12/07/2015, 1:49 PMCzar
12/07/2015, 1:49 PMyole
12/07/2015, 1:50 PMderkork
12/07/2015, 1:50 PMopen
all over the place.mplatvoet
12/07/2015, 1:50 PMCzar
12/07/2015, 1:52 PMmplatvoet
12/07/2015, 1:52 PMval
and var
being explicit. I wish there could be a same approach for the open closed debatemplatvoet
12/07/2015, 1:58 PMval
is to var
as class
is to def
as fun
is to def
jkbbwr
12/07/2015, 1:59 PMmplatvoet
12/07/2015, 1:59 PMdef SomeFinalClass {
def finalMethod() {}
}
jkbbwr
12/07/2015, 2:00 PMjkbbwr
12/07/2015, 2:00 PMdef
has contextual meaningmplatvoet
12/07/2015, 2:00 PMdef
, it’s about the ideaderkork
12/07/2015, 2:00 PMmplatvoet
12/07/2015, 2:01 PMclass SomeOpenClass {
fun openMethod() {}
}
jkbbwr
12/07/2015, 2:02 PMdalexander
12/07/2015, 2:02 PMmplatvoet
12/07/2015, 2:02 PMderkork
12/07/2015, 2:05 PMopen class
or final class
.. which in turn adds ceremony...jkbbwr
12/07/2015, 2:05 PMjkbbwr
12/07/2015, 2:05 PMderkork
12/07/2015, 2:06 PMderkork
12/07/2015, 2:07 PMderkork
12/07/2015, 2:07 PMderkork
12/07/2015, 2:08 PMjkbbwr
12/07/2015, 2:09 PMderkork
12/07/2015, 2:10 PM