https://kotlinlang.org logo
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
  • p

    pavel

    10/24/2017, 9:06 PM
    if you are very lispy then maybe you can simply invoke clojure(or some other lisp)
    g
    • 2
    • 3
  • p

    Paul Woitaschek

    10/25/2017, 9:33 AM
    I put them before the class definition
    n
    k
    • 3
    • 2
  • s

    Saša Šijak

    10/25/2017, 10:02 AM
    Any tutorial on how to publish kotlin lib to maven central from gradle project. I have never pushed anything to maven central.
    g
    • 2
    • 1
  • s

    Slackbot

    10/25/2017, 12:17 PM
    This message was deleted.
    k
    m
    • 3
    • 2
  • j

    jstuyts-squins

    10/25/2017, 1:51 PM
    2 functions:
    fun sayHello(name: String) {
        sayHelloMan(name)
    }
    fun sayHelloMan(namePrefix: String) {
        print("Hello ${namePrefix}Man")
    }
    d
    • 2
    • 1
  • i

    Ian

    10/25/2017, 4:42 PM
    I’m using the kotlin-stdlib-jdk8 dependency however I can’t seem to use the
    toList()
    extension method on
    Stream
    , anyone have any ideas why that might be?
    i
    • 2
    • 1
  • h

    Hawk

    10/25/2017, 4:44 PM
    @ianandrewclark Don't call
    .stream()
    it gives you a java stream not a kotlin list, you should be able to call
    .forEach { println(it) }
    directly on the collection.
    s
    i
    • 3
    • 12
  • c

    codeslubber

    10/25/2017, 10:51 PM
    but the Bloch version constructs it in one chain of calls and is thus immutable
    p
    p
    • 3
    • 8
  • b

    Brian Trezise

    10/26/2017, 1:49 PM
    Annotation processing question: Is there a way to preserve variable names (in particular, method parameter names) when compiling kotlin so the annotation processor can pull the original name out of the .class files?
    d
    • 2
    • 21
  • j

    joejungmann

    10/26/2017, 4:24 PM
    @Provides @IntoMap @StringKey("job_example_tag")
      fun <T : Job> providesExampleJob(target: Provider<ExampleJob>): Provider<T> = target
    a
    • 2
    • 1
  • k

    kevinmost

    10/26/2017, 6:31 PM
    enumValueOf
    x
    • 2
    • 11
  • s

    santiago

    10/26/2017, 9:02 PM
    Is there any way to get an annotation onto a field in a data class such that when I do ThatDataClass::theField, I can call findAnnotation<Annotation>() on the KProperty and get the Annotation back? I am having trouble doing that, after doing @field:Annotation val theField.
    d
    • 2
    • 11
  • k

    karelpeeters

    10/27/2017, 6:38 AM
    @groostav I think that question would be a better fit for https://cs.stackexchange.com/
    g
    • 2
    • 2
  • z

    zarkopafilis

    10/27/2017, 8:44 AM
    Does anyone know about the implementation of coroutine's? I'm interested in how many registers change in order to swap coroutine's over a single thread.
    s
    • 2
    • 1
  • n

    nerses

    10/27/2017, 2:07 PM
    hi, i am preparing a case for adopting Kotlin, do you know how this graph is being generated?
    v
    • 2
    • 1
  • k

    karelpeeters

    10/27/2017, 4:09 PM
    That doesn't work with operator overloading.
    b
    • 2
    • 1
  • r

    rook

    10/27/2017, 4:20 PM
    Hm, that’s weird. I wonder why Kotlin allows a direct
    .equals()
    call, but not a
    ==
    call
    a
    b
    • 3
    • 4
  • l

    littlelightcz

    10/27/2017, 4:41 PM
    Hi everybody, is it possible to execute a blocking IO operation (such as HTTP GET request) in a coroutine and make it suspend instead of blocking the thread?
    k
    b
    • 3
    • 10
  • p

    poohbar

    10/27/2017, 5:48 PM
    why isn't the behavior of
    @file:JvmName("SomeFileName")
    applied to each file by default?
    i
    • 2
    • 1
  • m

    Marc Knaup

    10/28/2017, 3:09 PM
    Is there any difference between
    <in Any>
    and
    <Any>
    ? Nothing can be higher in hierarchy than
    Any
    anyway.
    i
    • 2
    • 4
  • m

    Marc Knaup

    10/28/2017, 3:11 PM
    And
    <out Any>
    vs.
    <*>
    ?
    i
    • 2
    • 2
  • n

    noncom

    10/28/2017, 5:48 PM
    am I missing something?
    s
    • 2
    • 1
  • t

    tschuchort

    10/29/2017, 3:46 PM
    what naming convention do you use for generic type parameters? The single letter names are often too confusing for me
    k
    m
    • 3
    • 2
  • m

    marcinmoskala

    10/30/2017, 8:25 AM
    val table: Map<String, Int>? = null get() { if (field == null) { field = HashMap() } return field }
    d
    f
    • 3
    • 9
  • g

    gildor

    10/30/2017, 10:34 AM
    Nope
    m
    • 2
    • 1
  • e

    ebonet

    10/30/2017, 11:41 AM
    since the POJO’s are immutable there’s no point in getter and setters
    g
    • 2
    • 6
  • m

    mike_shysh

    10/30/2017, 1:56 PM
    Hi, could you please recommend the best solution to parse file with {key,value} data?
    g
    • 2
    • 1
  • m

    mike_shysh

    10/30/2017, 2:05 PM
    The ways I know is to parse yaml into the Object, but I need only Map<String, int>
    d
    • 2
    • 3
  • a

    avovk

    10/30/2017, 4:30 PM
    Hello, I'm looking for someone who understands some of the inner workings of the Kotlin compiler and is willing to contribute (possibly for a while if you want) to a project I'm working on. I'm looking to make a Kotlin module for Atom-IDE and I would want to have things like code completion, refactoring, error checking, reference lookup, and documentation. If anyone is willing to help, please contact me at avovk@substanceproejct.net or start a thread on this message. Thanks!
    k
    p
    • 3
    • 4
  • s

    Sunny Chiu

    10/30/2017, 10:07 PM
    Hi there, I want to know if Kotlin can works well with android 5.1 API? I want to develop a simple demo app on non-google approved android wearable device
    k
    g
    • 3
    • 2
Powered by Linen
Title
s

Sunny Chiu

10/30/2017, 10:07 PM
Hi there, I want to know if Kotlin can works well with android 5.1 API? I want to develop a simple demo app on non-google approved android wearable device
k

kenkyee

10/30/2017, 11:30 PM
Works fine down to at least Android 4.0... That's as old as we target...
g

gildor

10/31/2017, 2:40 AM
Kotlin works for all Android API levels, at least I don’t know any issues
View count: 2