The Run Scope Function Explained (Kotlin)

Поделиться
HTML-код
  • Опубликовано: 26 сен 2024

Комментарии • 5

  • @ritheshbhat1153
    @ritheshbhat1153 4 года назад +5

    Hi @Cody I've a doubt, what's the difference between the 2 scopes. it and this. Can you elaborate a bit more on this.

    • @CodyEngelCodes
      @CodyEngelCodes  4 года назад +3

      Yeah the difference between let and run is just the context within the scope. Let is when the context object should be named and “this” should be referencing the outer scope.
      Run is when you don’t want to name the context object and just have the scope within the block set to this (so it’s not as easy to access the outer scope).
      Hope this helps! They are very similar so I wouldn’t overthink it 😊

  • @smithshelke2036
    @smithshelke2036 4 года назад +2

    These are high quality videos and very helpful.. hope its going to be a long long series.. thanks 🙂

    • @CodyEngelCodes
      @CodyEngelCodes  4 года назад

      Thanks for the feedback that made my day 😊
      Scope functions are only going run through the end of the week (only have 5 of them). However I filmed videos for the collections library which spans 12 or 13 videos, I just need to get around to editing them (started a new job this week but hoping to get some edited this weekend).

  • @AndreyShredder
    @AndreyShredder 8 месяцев назад

    zip code must be String type