kevinmost
03/24/2017, 7:56 PMlistOf
before the literalbeholder
03/24/2017, 8:31 PMkevinmost
03/24/2017, 8:32 PMcodeslubber
03/24/2017, 8:35 PMorangy
kevinmost
03/24/2017, 9:44 PMsetOf(3, 4, 5)
still, or will they be tempted to do [3, 4, 5].toSet()
which would be another allocation?dalexander
03/24/2017, 9:55 PMorangy
orangy
object L {
operator fun <T> get(vararg values : T) = values.toList()
}
Not very bad by itself 🙂rednifre
03/24/2017, 10:10 PMrednifre
03/24/2017, 10:12 PMmkobit
03/24/2017, 10:50 PMorangy
mkobit
03/24/2017, 11:18 PMJenkinsfile
in the root of their repository, and I would like to give them something to give them IDE assistance when they consume our library without having to have them install a plugin (like this one https://github.com/oliverlockwood/jenkinsfile-idea-plugin). Most of our users use IntelliJ and Gradle, so I was trying to figure out some of solution around that.
What I thought I could do, (stemming from my question above) was to write what I believe are called GDSL scripts (looking at https://confluence.jetbrains.com/display/GRVY/Scripting+IDE+for+DSL+awareness) for consumers of my library, but im definitely open to other suggestions.orangy
mkobit
03/24/2017, 11:20 PMthomasnield
03/25/2017, 2:12 AMvoddan
03/25/2017, 6:38 AMvoddan
03/25/2017, 6:39 AMvoddan
03/25/2017, 6:41 AMvoddan
03/25/2017, 6:42 AMdarkmoon_uk
03/25/2017, 6:58 AMdarkmoon_uk
03/25/2017, 6:59 AMdarkmoon_uk
03/25/2017, 7:03 AMdarkmoon_uk
03/25/2017, 7:03 AMdarkmoon_uk
03/25/2017, 7:05 AMjanvladimirmostert
03/25/2017, 10:33 AMdarkmoon_uk
03/25/2017, 11:07 AMAndreas Sinz
03/25/2017, 11:21 AM[1, 2, 3] as Set<Int>
or [1, 2, 3].toSet()
is comparable to setOf(1, 2, 3)
darkmoon_uk
03/25/2017, 11:22 AMval mySet : Set<Int> = [1, 2, 3]
Either way the type is coerced.