New Standard Library Features in Kotlin 1.5.0

Поділитися
Вставка
  • Опубліковано 28 вер 2024

КОМЕНТАРІ • 34

  • @Kotlin
    @Kotlin  3 роки тому +15

    A small correction: The “mod” function always returns non-negative results given a positive divisor.
    A negative divisor (7.mod(-3)) returns negative results - which is probably what you expected to happen anyway! 😉

  • @LouisCognault
    @LouisCognault 3 роки тому +7

    Great pace, great sound, thanks for that great overview of new stdlib stuff!

  • @SolaLupus
    @SolaLupus 3 роки тому +6

    Yeah, finally stable unsigned types :) That's one of the things I was really looking forward to :)

  • @eduardongu
    @eduardongu 3 роки тому +4

    Damn, Seb. You almost made me spit my coffee with the ULong joke. 😆

  • @johnpaulcarter7
    @johnpaulcarter7 3 роки тому +2

    Thanks - loving this fresh, lively Kotlin channel.

  • @michaelnajera7958
    @michaelnajera7958 3 роки тому

    Wow, what a concise and dense conveyance of information. And so well articulated. I wish I could give this clean a presentation at my job.

  • @LostMekkaSoft
    @LostMekkaSoft 3 роки тому

    This is such a good overview video. I love it!
    Also: YESSSSSS, FLOORMOD!!! Now I can finally constrain negative angles down to 0..2pi without getting majorly confused every single time :D

  • @goobar
    @goobar 3 роки тому

    Yes! Excited for the new release. Lots to catch up on.

  • @aridwiprayogo
    @aridwiprayogo 3 роки тому +5

    Wow new features of Kotlin

  • @amplifyabhicoding
    @amplifyabhicoding 3 роки тому

    Updating is the key aspect I too started a series on kotlin 2021 have a look.

  • @pawewodarczyk1546
    @pawewodarczyk1546 3 роки тому

    For assertions I find assertk to be a much more versatile option. An another interesting alternative is kotlin-power-assert plugin, but IMHO it's still a little too limitating at this point.

  • @prometheusli101
    @prometheusli101 3 роки тому +2

    how can you print data in live?

    • @aleksandrevseev5978
      @aleksandrevseev5978 3 роки тому

      Found it bro, its File -> New -> Scratch File -> Kotlin

    • @prometheusli101
      @prometheusli101 3 роки тому

      @@aleksandrevseev5978 awesome!thank you so much bro

  • @СашаБалбеков
    @СашаБалбеков 3 роки тому

    Спасибо за UInt. Наконец то его можно нормально использовать. Полезная штука для того, чтобы наложить доп ограничение на поле. Раньше приходилось извращаться, чтобы гарантировать, что число больше нуля, теперь извращаться будет язык, а не я.

  • @karticchaudhary
    @karticchaudhary 3 роки тому

    how can i get that jetbrains t-shirt ?

  • @louis_h_99
    @louis_h_99 3 роки тому

    조으다 조아~ good~

  • @tasomaniac
    @tasomaniac 3 роки тому +2

    🇹🇷🇹🇷🇹🇷 As Bayrakları 3:14 🇹🇷🇹🇷🇹🇷

  • @raphaeltarita5187
    @raphaeltarita5187 3 роки тому

    TIL that 820066189294 (decimal) is "beefc0ffee" in hexadecimal. Nice easter egg! And keep up the good work, I'm loving this language!

  • @Adam0001
    @Adam0001 3 роки тому

    But after i updated it, every time i want to create a new project in android studio i face a problem, the problem because of version 1.5.0-764, it solved by make the version just 1.5.0, but that's a problem because every time i must convert it to 1.5.0, how can i get rid of this stupid thing???

  • @raianmr2843
    @raianmr2843 2 роки тому

    making a better language than java is so easy lmao

  • @TimSchraepen
    @TimSchraepen 3 роки тому +1

    Yay Kotlin! ❤️

  • @eduardongu
    @eduardongu 3 роки тому +1

    Does `assertIs` perform a contract so the argument passed to the function can be smart casted? This has been a common need in my projects and it would be very nice if it does so...

    • @sebastianaigner9125
      @sebastianaigner9125 3 роки тому +1

      Indeed, assertIs comes with a contract that does exactly what you need!
      "contract { returns() implies (value is T) }"
      That means the value is smart-casted after this assertion!

    • @eduardongu
      @eduardongu 3 роки тому

      @@sebastianaigner9125 Awesome, thank you!

  • @A_E_G_I_S
    @A_E_G_I_S 3 роки тому

    Awesome, Much needed!!
    Some years ago when I learned other languages, I wondered why Java and Kotlin don’t have signed and unsigned ones since it’s nice. These will eliminate lengthy validations on production code.

  • @jesselima_dev
    @jesselima_dev 3 роки тому

    Very nice!!!!!

  • @TretrebuchPlay
    @TretrebuchPlay 3 роки тому

    6:53 - Are you sure? I am certain, it stands for "New I/O".
    On a loosely connected topic, I wished kotlinx.coroutines would finally get Java Module Support, like the standard library. Or a reason why this can't be done.

    • @sebastianaigner9125
      @sebastianaigner9125 3 роки тому +2

      In regards to NIO - I actually specifically researched this before recording the video - according to Wikipedia, "java.nio (NIO stands for Non-blocking I/O[1]) is a collection of Java programming language APIs that offer features for intensive I/O operations." They cite the docs on "Enhancements in JDK 7 Release".

    • @TretrebuchPlay
      @TretrebuchPlay 3 роки тому

      @@sebastianaigner9125 The project is called "New I/O" on the OpenJDK website, JSR 51 - which is referenced by the same wikipedia article - is called "JSR 51: New I/O APIs for the JavaTM Platform" (similar with JSR 203) and it contains ways to read/write files (and other channels) in a blocking way, but it stands for "non-blocking i/o".
      I hope it's obvious where my confusion is coming from and thank you for correcting me.

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 3 роки тому

    New features are for babies