xenoterracide
12/27/2018, 7:23 PMval modules = listOf(
"ph-db-migration",
"ph-emr-entity",
"ph-emr-event-type",
"ph-events",
"redox",
)
you probably wouldn’t write this like this, but it makes the last comma more obvious
val modules = listOf( "ph-db-migration", "ph-emr-entity", "ph-emr-event-type", "ph-events", "redox",)
would compile to the same thing as
val modules = listOf( "ph-db-migration", "ph-emr-entity", "ph-emr-event-type", "ph-events", "redox")
karelpeeters
12/27/2018, 7:24 PMorangy
a b c
between a list of 3 elements and a list of 1 element where b
is infix function?karelpeeters
12/27/2018, 7:50 PM;
.xenoterracide
12/27/2018, 7:53 PMqw( a ) b
, but yeah this is about trailing comma’s not lists of auto quoted words, symbols or other functionsxenoterracide
12/27/2018, 8:01 PMRuckus
12/27/2018, 8:05 PM"redox"
should be allowed, not making all commas optional.xenoterracide
12/27/2018, 8:05 PMorangy
xenoterracide
12/27/2018, 8:57 PMorangy
poohbar
01/03/2019, 1:43 AMxenoterracide
01/03/2019, 11:37 PMpoohbar
01/03/2019, 11:45 PMkarelpeeters
01/03/2019, 11:49 PM,
whenever I comment out a line in a multiline call, eg
val x = listsOf(
4654231,
7898798,
//1349846 -- oops, now there's a trailing comma!
)
I'd like the compiler to just carry on. The problem of conventions can then be solved like eg. spacing, Ctrl+Alt+L
fixes it.poohbar
01/03/2019, 11:52 PM