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

    jkbbwr

    10/28/2018, 12:18 AM
    Say imagine I had
    fun fopen(path: String, mode: String): File {
        contract {
            mustBeClosed()
        }
    }
    a
    • 2
    • 7
  • r

    René

    10/28/2018, 6:15 AM
    I'm also looking for a roadmap of the future releases. I read e.g. about 1.3 and 1.3.20 what is with the minor versions 1.3.1-1.3.19? I'm not looking for actual dates I'm more intrested which tickets should be done before the release
    a
    a
    • 3
    • 2
  • h

    Hamza

    10/29/2018, 8:20 AM
    use internal
    c
    m
    • 3
    • 2
  • m

    muralimohan962

    10/29/2018, 8:30 AM
    Hi everyone! How do i declare kotlin equivalent of java's List<? extends SomeClass> ?
    e
    k
    • 3
    • 4
  • l

    louiscad

    10/29/2018, 9:15 AM
    Loving the new Kotlin 1.3 documentation! You can see what is available in Common, JVM, JS and Native, and select/unselect to apply filters. The colors also help. It's the little things! See yourself here: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/index.html
    😍 13
    e
    • 2
    • 1
  • p

    Paul Woitaschek

    10/29/2018, 9:22 AM
    When writing kotlin scripts: How do you parse arguments?
    e
    c
    +3
    • 6
    • 8
  • t

    Thomas Legrand

    10/29/2018, 10:43 AM
    Does someone know when 1.3 will be available on HomeBrew ?
    c
    x
    o
    • 4
    • 4
  • m

    mzgreen

    10/29/2018, 11:30 AM
    Why this works:
    class Foo {
        private val test: String
        init {
            test = "test"
        }
    }
    and this doesn’t:
    class Foo {
        private val test: String
        init {
            bar()
        }
        private fun bar() {
            test = "test"
        }
    }
    Is there any valid case why it may fail? Or it’s the compiler’s fault that it doesn’t recognize
    bar
    is called inside an
    init
    ?
    r
    p
    • 3
    • 11
  • j

    Jan Vomlel

    10/29/2018, 11:34 AM
    I need to write in Kotlin DSL: filter {line -> if (true/*some condition*/) line else null } Filter is defined here: https://docs.gradle.org/current/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:filter(org.gradle.api.Transformer) But compiler does not compile it, because null is not String. Filter is defined in java and null is allowed there. How to write it in Kotlin?
    j
    h
    • 3
    • 4
  • i

    Icaro Temponi

    10/29/2018, 12:43 PM
    https://github.com/JetBrains/kotlin OMG, am I seeing it right? was 1.3 really released to maven central?
    m
    c
    m
    • 4
    • 5
  • d

    david-wg2

    10/29/2018, 12:50 PM
    can't you just bump?
    d
    l
    • 3
    • 6
  • o

    orangy

    10/29/2018, 2:56 PM
    It’s released when the blog post is published. Please be patient.
    ➕ 2
    👆 1
    👍 16
    h
    a
    • 3
    • 11
  • e

    enleur

    10/29/2018, 3:20 PM
    I feel like an addict now
    😂 8
    a
    s
    h
    • 4
    • 13
  • o

    orangy

    10/29/2018, 3:32 PM
    <!channel> Kotlin 1.3 released with #coroutines out of experimental, #kotlin-native beta, #ktor beta and more! All details are in the blog post and accompanying materials: https://blog.jetbrains.com/kotlin/2018/10/kotlin-1-3/ It’s now perfect time to start spreading the word, migrating projects, libraries and embracing the #multiplatform! Have fun and let’s Kotlin!
    🎊 1
    🕜 3
    😃 17
    🇳🇴 14
    😱 5
    💃 2
    🆒 14
    💯 43
    🤩 7
    🇮🇷 2
    🛸 2
    🇧🇷 16
    🇵🇪 3
    🇨🇦 7
    🎉 66
    😍 17
    🍾 93
    ☝️ 5
    🇫🇴 1
    🇩🇪 9
    😒uspend: 37
    :yes: 73
    :kotlin: 358
    🌥️ 2
    🎏 3
    🇧🇻 11
    🔥 77
    📢 2
    :gradle: 14
    🍺 26
    🌞 2
    🇵🇱 5
    🍝 1
    🇸🇯 12
    🇦🇲 1
    🥒 4
    🇫🇷 11
    🍰 21
    🇸🇪 5
    🌏 5
    🇪🇸 1
    🇺🇦 15
    💕 3
    🎖️ 13
    🇺🇾 6
    👍 22
    👏 57
    🤘 41
    😎 39
    ❤️ 62
    a
    t
    +6
    • 9
    • 9
  • k

    ksinkar

    10/29/2018, 3:32 PM
    Is there any good code coverage library for Kotlin like Cobertura or JaCoCo is for Java? It has be FLOSS of-course
    m
    • 2
    • 1
  • h

    Hamza

    10/29/2018, 3:35 PM
    ooh, that’s such a nice gif to represent coroutines
    💯 15
    a
    • 2
    • 2
  • i

    Icaro Temponi

    10/29/2018, 3:37 PM
    lol, tons of deprecations instantly, all pre 1.3 libraries using coroutines deprecated 😂
    l
    • 2
    • 1
  • o

    oday

    10/29/2018, 3:37 PM
    when will it hit google repos
    a
    • 2
    • 2
  • h

    Hamza

    10/29/2018, 3:38 PM
    yeah, it kinda sucked. i had a few libraries from people i wanted to use but now i can not because experimental coroutines
    y
    • 2
    • 4
  • o

    Oussama Haff.

    10/29/2018, 3:38 PM
    Kotlin.. the only programming language that has a slogan 😎
    😎 3
    a
    p
    +2
    • 5
    • 4
  • m

    Marc Knaup

    10/29/2018, 3:39 PM
    Is there a parallel launch of a new Gradle version so that the embedded compiler is also 1.3 for
    buildSrc
    ?
    j
    • 2
    • 1
  • l

    luke_c

    10/29/2018, 4:14 PM
    Anyone else getting unresolved references after migrating from experimental to 1.3?
    o
    y
    +2
    • 5
    • 10
  • j

    jlleitschuh

    10/29/2018, 4:22 PM
    @orangy It would be good to add a quick piece to the inline classes page about how/if inline classes can be used in Java source files. Also any pitfalls (if any) of doing so. https://kotlinlang.org/docs/reference/inline-classes.html
    o
    • 2
    • 3
  • d

    dave08

    10/29/2018, 4:33 PM
    Oops, AS was indexing while I tried running the migrations for 1.3 and coroutines 1.0.0... it can't run them during indexing. How do I run the migrations now, I just can't find them 🙈
    y
    • 2
    • 1
  • j

    jlleitschuh

    10/29/2018, 4:34 PM
    So I notice that 1.3 adds support for an official Koltin
    Random
    which is awesome! I'm wondering why there wasn't an official Kotlin version of
    SecureRandom
    added. Without an official
    SecureRandom
    100% kotlin based crypto libraries can't be implemented without adding platform specific implementations. Dan Kaminsky did an interesting talk at defcon about why more standard libraries libraries should offer
    SecureRandom
    by default. So many software security bugs have been caused purely because someone on the implementation side goofed and used a predictable Random number generator.

    https://youtu.be/xneBjc8z0DE▾

    m
    o
    +4
    • 7
    • 21
  • h

    Hele

    10/29/2018, 5:00 PM
    do you guys use kotlin at work ?
    :kotlin-flag: 1
    :yes: 108
    :android: 10
    🚀 2
    t
    m
    +10
    • 13
    • 13
  • e

    elect

    10/29/2018, 5:32 PM
    ok, now it's time to jump on the 1.4 hype train :trollface:
    🚄 14
    🤦 4
    e
    d
    n
    • 4
    • 7
  • j

    jlleitschuh

    10/29/2018, 6:25 PM
    Is there no official Kotlin support for SAM conversion on Kotlin interfaces in 1.3? I know that the flag was added to the compiler back in 1.2 (it's used by the Gradle Kotlin DSL), but it's not being featured in the "whats new". It's also one of the most voted about issues on YouTrack. What's it's status? https://kotlinlang.org/docs/reference/whatsnew13.html
    h
    o
    +2
    • 5
    • 9
  • n

    nfrankel

    10/29/2018, 6:52 PM
    i expect line 35 to fail at compile time but it doesn’t... 😞
    h
    k
    +2
    • 5
    • 19
  • n

    nfrankel

    10/29/2018, 6:53 PM
    any hint?
    j
    • 2
    • 1
Powered by Linen
Title
n

nfrankel

10/29/2018, 6:53 PM
any hint?
j

juancho

12/28/2018, 3:50 PM
To help you maintaining this code you can use AutoDsl: https://github.com/juanchosaravia/autodsl/
View count: 3