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
  • k

    kirillrakhman

    03/31/2017, 2:04 PM
    KCLass<out ChessPiece>
    m
    l
    • 3
    • 2
  • k

    kirillrakhman

    03/31/2017, 2:46 PM
    you have to declare some generic type
    doMove<Something>
    which isn't even used
    u
    l
    • 3
    • 12
  • u

    user

    03/31/2017, 4:22 PM
    message has been deleted
    🎉 8
    👍 5
    :kotlin: 11
    s
    • 1
    • 2
  • d

    Dmitry Kandalov

    03/31/2017, 6:30 PM
    Hi. Has anyone noticed that “create extension function” intention creates a function with two spaces after
    fun
    ? 😰
    k
    • 2
    • 3
  • b

    bob

    03/31/2017, 10:38 PM
    I would still argue that it make some sense. A boolean is said to be
    true
    or
    false
    .. not null. So in a way there's less sense in having a
    Boolean?
    type at all. And if we compare with java the primitive
    boolean
    has
    false
    as default value. As per say if it’s not explicitly sat to
    true
    it is in fact
    false
    . But I see where you’re coming from and I understand, I was just hoping that something that is used often might be in consideration some syntactic sugaring to get rid of verboseness.
    g
    • 2
    • 4
  • a

    alexp11223

    04/01/2017, 8:29 AM
    I upgraded Kotlin to 1.1.1 in my Maven project and now Travis CI build fails (only Linux, MacOS works):
    [WARNING] The POM for org.jetbrains.kotlin:kotlin-maven-plugin:jar:1.1.1 is missing, no dependency information available
    [INFO] Downloading: <https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar>
    [INFO] Downloaded: <https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar> (165 KB at 2457.0 KB/sec)
    [WARNING] Error injecting: org.jetbrains.kotlin.maven.K2JVMCompileMojo
    java.lang.NoClassDefFoundError: com/intellij/util/Processor
    https://travis-ci.org/AlexP11223/minic/jobs/217293085 Is it Travis issue? Or I am doing something wrong?
    f
    • 2
    • 3
  • i

    igor.wojda

    04/01/2017, 7:40 PM
    so you then 'mark class as open'
    m
    • 2
    • 1
  • s

    sreich

    04/02/2017, 12:31 AM
    intellij is telling me to remove that true because it is superfluous
    j
    k
    • 3
    • 12
  • m

    mg6maciej

    04/02/2017, 6:58 AM
    message has been deleted
    g
    • 2
    • 4
  • c

    chansek

    04/02/2017, 12:18 PM
    This is my 1st class with 1st function Trying to convert a jsonobject to HashMap
    m
    • 2
    • 1
  • g

    groostav

    04/03/2017, 6:29 AM
    bearing in mind all those functions are persistent (ie local factories), can you not write a simple
    asIterable()
    extension function on your external class?
    p
    • 2
    • 4
  • r

    ross_a

    04/03/2017, 9:38 AM
    Quick question - does
    when
    perform == check or === check when comparing objects? It doesn’t mention on the docs
    when (message) {
            removeMessage -> removeItem(subject)
            else -> sendItem(subject, message)
        }
    companion object {
            val removeMessage = Message { mapOf<String, String>() }
        }
    ^^ Answered myself by converting to if
    if (it.second == removeMessage) removeItem(subject)
                                    else sendItem(subject, message)
    m
    • 2
    • 5
  • o

    orangy

    04/03/2017, 9:44 AM
    Nice idea! I don’t think Slack allows such read-only restricted channels, though. But community here is so good that I doubt it could be a problem. However, announcements often provoke discussions, and though threads are there, they are not very useable tbh. OTOH, we already have #feed, may be just post it there.
    👯 2
    m
    • 2
    • 2
  • s

    sreich

    04/03/2017, 10:59 AM
    i don't understtand function references
    m
    • 2
    • 1
  • i

    igor.wojda

    04/03/2017, 3:28 PM
    Where can I find voting scores for 'Kotlin 20 Future Features kit' - I am curious what the community wants to see
    m
    o
    r
    • 4
    • 4
  • o

    orangy

    04/03/2017, 5:33 PM
    A potential solution could be something like
    when (val x = expr()) { is Foo -> x.fooMember() }
    , but that’s quite complex
    m
    • 2
    • 3
  • c

    cy

    04/03/2017, 6:01 PM
    @beholder perhaps you can look at particular example
    b
    • 2
    • 9
  • s

    sreich

    04/03/2017, 8:38 PM
    hm there's no
    capitalizeSmart
    ?
    i
    • 2
    • 2
  • r

    raulraja

    04/03/2017, 10:22 PM
    Are there any plans to support either Higher Kinds, implicits or some kind of typeclass support in Kotlin?
    🙂 1
    🙃 1
    d
    a
    • 3
    • 9
  • s

    sreich

    04/03/2017, 10:50 PM
    other than
    topdirFile.walk().onEnter { file-> file.path == topdir}
    i
    • 2
    • 1
  • g

    gbaldeck

    04/04/2017, 1:44 AM
    is anyone having trouble getting kotlin-stdlib-js:1.1.2-eap-44 to download with gradle?
    b
    • 2
    • 1
  • o

    orangy

    04/04/2017, 8:49 AM
    It is a feature, both calls are interchangeable. Essentially function with a receiver is a function with a single parameter, so for simplicity in implementation and some edge cases, lambda with receiver can be called in both forms.
    m
    • 2
    • 1
  • m

    michaelzinn

    04/04/2017, 10:43 AM
    Hi! What’s the best place to chat about IntelliJ issues (unrelated to Kotlin)? Is there an IntelliJ slack or something?
    y
    • 2
    • 2
  • b

    badlogic

    04/04/2017, 1:19 PM
    grats on kotlin-native 🙂
    👍 5
    👏 4
    s
    g
    • 3
    • 3
  • r

    raulraja

    04/04/2017, 2:07 PM
    has there been any discussions regarding support for some kind of dependent/abstract types in Kotlin?. something like ...
    interface X {
      typealias F
      fun x() : F
    }
    
    class Y : X {
      typealias F = String
      fun x() : String = "hello dependent types!"
    }
    v
    j
    • 3
    • 12
  • j

    jackmiras

    04/04/2017, 8:34 PM
    Hi guys, does any one know any library that is similar to factory_girl from Ruby?
    g
    • 2
    • 1
  • m

    masted

    04/05/2017, 7:04 AM
    Is there a way to distinguish functions with a same name but with a different total signature in KDoc? Say, I have
    fun something()
    and
    fun something(arg: Int)
    and I want to link em each other in a docs. Is it possible and how can I do it?
    o
    s
    • 3
    • 3
  • w

    wineluis

    04/06/2017, 12:05 PM
    do you know a nice kotlin executive advertisement? i dont need detailled technical stuff but a nice sheet which displays how kotlin is vastly superior on efficiency to the martyrum that is terrible java
    🙄 1
    ❗ 1
    :kotlin: 3
    ☝️ 1
    v
    d
    s
    • 4
    • 5
  • v

    viliusk

    04/06/2017, 12:10 PM
    Kotlin + Node.js? Anyone?
    n
    y
    +2
    • 5
    • 8
  • o

    orangy

    04/07/2017, 10:34 AM
    📣 📣 Should we create a channel for “data science”, “big data”? If you are interested please react with 🔬 If you do, please suggest a name which is clear and not too generic.
    🔬 6
    m
    e
    c
    • 4
    • 7
Powered by Linen
Title
o

orangy

04/07/2017, 10:34 AM
📣 📣 Should we create a channel for “data science”, “big data”? If you are interested please react with 🔬 If you do, please suggest a name which is clear and not too generic.
🔬 6
m

masted

04/07/2017, 10:49 AM
#datalogy
o

orangy

04/07/2017, 10:52 AM
Nice idea, but it’s really hard to just guess it
I’m not very familiar with the domain, so I’m asking if it should be #datascience or #bigdata or something else
m

masted

04/07/2017, 11:16 AM
well, #datascience is a general name of field of science, and #bigdata is a name for a particular archetype in a nowadays industry, both terms are wide, broad and cluttered, but #datascience have a potential boundaries and hierarchy inside, where #bigdata is all about buzz by its nature 🙂
e

elizarov

04/07/2017, 11:26 AM
#datascience is more general. Most data people work with using the likes of R and Python is not big, but analyzing it is still just a important and the analysis you’d do in Hadoop and Spark
o

orangy

04/07/2017, 12:04 PM
You are welcome to #datascience
c

cedric

04/07/2017, 1:57 PM
@orangy In my experience, it's better to not create a specific channel until the general channel gets overwhelmed with this specific topic, otherwise you'll create a dead channel
View count: 1