https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
announcements
  • a

    Alowaniak

    09/18/2018, 3:17 PM
    basically same discussion as the list literals
    s
    • 2
    • 2
  • n

    Nikky

    09/18/2018, 3:18 PM
    kotlin probably has a extension function for Optional to unpack it into a Nullable
    p
    • 2
    • 3
  • b

    Brian Zhang

    09/18/2018, 5:34 PM
    Hey all, I’m presenting a talk on Kotlin for my team, and would like to order some gear/swag to promote Kotlin! Can anyone point me in the right direction? Looking for things like pins, stickers, etc. that were handed at at KotlinConf. Thanks, and apologies if this is the wrong channel!
    r
    • 2
    • 2
  • b

    beholder

    09/19/2018, 5:23 AM
    It's platform dependent
    l
    • 2
    • 1
  • c

    coder82

    09/19/2018, 8:22 AM
    I am getting this error since I updated everything to align to version 1.2.70, this was working before, what happened?
    -.txt
    h
    a
    • 3
    • 2
  • p

    pp.amorim

    09/19/2018, 9:51 AM
    is there any micro improvement to use explicit types in relation to compilation time? In Swift you can get faster compilation time if you set explicit types, I am not sure how Kotlin deals with it.
    e
    g
    • 3
    • 13
  • e

    erluxman

    09/19/2018, 9:51 AM
    Hello guys... any resource you have about testing if in app purchases in android work fine?
    :stackoverflow: 3
    k
    • 2
    • 1
  • m

    myanmarking

    09/19/2018, 11:37 AM
    yo guys. i read somewhere about kotlin value classes, but cant find where
    p
    s
    • 3
    • 5
  • s

    Shawn

    09/19/2018, 3:38 PM
    tl;dr thicc generated code
    👍 2
    ☝️ 5
    😂 5
    i
    • 2
    • 4
  • t

    temp_man

    09/19/2018, 5:27 PM
    ByteArray_Help.txt
    f
    s
    • 3
    • 3
  • r

    robin

    09/19/2018, 6:08 PM
    Facing a weird case here, I have the following function:
    fun <T> test(param: T) {
        val clazz = param::class
    }
    And the compiler complains (rightly so) that param has a nullable type 'T'. It even suggests using
    !!
    to make it non-nullable, but if I do that, the compiler still complains with the exact same message. Here are a few more variations I've tried, each one with the same error message:
    val clazz = param!!::class
    val clazz = param?.let { it::class }
    val clazz = if (param != null) param::class else null
    So, how am I supposed to get to the class of
    param
    here? Is this a bug with type inference or am I missing something? Making
    T
    reified or constrain it to
    Any
    is not an option.
    s
    k
    d
    • 4
    • 25
  • p

    pp.amorim

    09/20/2018, 3:41 PM
    Is there any way to use private functions on inlined functions? I know it does not make sense for the compiler, could be implemented any special visibility modifier for inline functions?
    d
    s
    • 3
    • 13
  • d

    Dominaezzz

    09/20/2018, 5:11 PM
    Does
    Array
    and
    {Int,Float,...}Array
    implement
    Iterable
    ? I'm trying to write a method that can take either as input.
    h
    • 2
    • 3
  • r

    Ruckus

    09/20/2018, 6:38 PM
    Is
    suspend fun main
    always
    runBlocking
    ?
    i
    • 2
    • 2
  • t

    tapchicoma

    09/20/2018, 6:38 PM
    Even if you want to keep the old code style, please specify the kotlin.code.style=obsolete
    What is the old code style?
    g
    • 2
    • 1
  • d

    Dominaezzz

    09/20/2018, 6:40 PM
    Why spaces and no tabs?
    c
    k
    +4
    • 7
    • 27
  • h

    Hullaballoonatic

    09/20/2018, 7:25 PM
    would anyone be down for kotlin adding the ability to bound an if condition like this
    if foobool then
    instead of
    if( foobool )
    ? i would enjoy it for when using
    if
    and
    else
    as a ternary operator
    🇳🇴 8
    s
    c
    v
    • 4
    • 12
  • n

    Nikky

    09/20/2018, 8:37 PM
    why the hell is repository annotation not repeatable, thats a obvious oversight
    ➕ 1
    o
    • 2
    • 4
  • r

    redrield

    09/20/2018, 11:37 PM
    Is there a way I could replicate Android's
    @CallSuper
    lint outside of an android project using ktlint or something?
    g
    • 2
    • 1
  • a

    Alexander Vasiljev

    09/21/2018, 8:11 AM
    Congratulations with 1.3RC. Blog article says "Ktor is wrapping up its API and looking forward to your feedback." I'd like to give some feedback. What channel I should put it? ktor.io says "Head over our #ktor Kotlin Slack channel", but there is no #ktor in my kotlinlang.slack.com list. May someone invite me there?
    o
    a
    • 3
    • 3
  • v

    vaskir

    09/21/2018, 8:12 AM
    When will IDEA plugin for 1.3RC be released?
    o
    • 2
    • 4
  • v

    vaskir

    09/21/2018, 8:13 AM
    What is the most idiomatic library for simple data access? I found Vert.x, but it looks complicated. What I need is just execute a stored procedure asynchronously (coroutines) and loop over returned recordset.
    o
    • 2
    • 2
  • r

    ribesg

    09/21/2018, 8:23 AM
    Where can I get the kotlin-gradle-plugin for 1.3-RC? Is it on a separate repository?
    g
    • 2
    • 2
  • o

    orangy

    09/21/2018, 8:24 AM
    📣 Information about trying 1.3-RC is in the blog post: https://blog.jetbrains.com/kotlin/2018/09/kotlin-1-3-rc-is-here-migrate-your-coroutines/#how-to-try
    r
    • 2
    • 1
  • v

    vaskir

    09/21/2018, 8:42 AM
    There was
    future
    function (builder?), now it seems gone:
    o
    • 2
    • 1
  • v

    vaskir

    09/21/2018, 8:42 AM
    what to do?
    i
    • 2
    • 6
  • n

    Nikky

    09/21/2018, 5:02 PM
    is
    Persion
    a typo ?
    :yes: 1
    r
    • 2
    • 1
  • n

    Nikky

    09/21/2018, 5:09 PM
    i think something like this may be what you want
    contract {
            returns() implies (this@save is Person)
        }
    r
    • 2
    • 2
  • k

    karelpeeters

    09/21/2018, 8:41 PM
    If you have a class whose instances must always exist within the context of an instance of another class.
    👍 1
    p
    • 2
    • 1
  • p

    pavel

    09/21/2018, 10:00 PM
    I think for most people on this Slack going to KotlinConf is much more fun than going to Disneyland
    🤣 6
    💯 1
    p
    • 2
    • 1
Powered by Linen
Title
p

pavel

09/21/2018, 10:00 PM
I think for most people on this Slack going to KotlinConf is much more fun than going to Disneyland
🤣 6
💯 1
p

pivovarit

09/22/2018, 6:02 AM
I hope that food is better as well 😉
View count: 3