KOTLIN_BROADCAST Telegram 1761
Kotlin Multiplatform Broadcast
🏝 Новая фича Kotlin - Context Parameters В Kotlin 2.2 в Beta статусе появится фича - Context parametrs, которая заменяет Context receivers (будут удалены в Kotlin 2.3) // Пример Context parameters из Kotlin 2.2 interface Type { context(analysisScope: AnalysisScope)…
Чем отличается Context Parametr от Receiver Type в Extension fun
👉 Context Parameter может быть больше чем один
👉 Context Parameter позволяет задавать имена. Имя context parametr _ - это аналог использования this

Заявляется API compatibility при миграции на Context Parameter
un <E> Raise<E>.foo() = ...
// станет
context(_: Raise<E>) fun <E> foo() = ...

Пора сделать разбор и выложить видео


#kotlin
👍38



tgoop.com/kotlin_broadcast/1761
Create:
Last Update:

Чем отличается Context Parametr от Receiver Type в Extension fun
👉 Context Parameter может быть больше чем один
👉 Context Parameter позволяет задавать имена. Имя context parametr _ - это аналог использования this

Заявляется API compatibility при миграции на Context Parameter

un <E> Raise<E>.foo() = ...
// станет
context(_: Raise<E>) fun <E> foo() = ...

Пора сделать разбор и выложить видео


#kotlin

BY Kotlin Multiplatform Broadcast


Share with your friend now:
tgoop.com/kotlin_broadcast/1761

View MORE
Open in Telegram


Telegram News

Date: |

Telegram users themselves will be able to flag and report potentially false content. Click “Save” ; The visual aspect of channels is very critical. In fact, design is the first thing that a potential subscriber pays attention to, even though unconsciously. A new window will come up. Enter your channel name and bio. (See the character limits above.) Click “Create.” Invite up to 200 users from your contacts to join your channel
from us


Telegram Kotlin Multiplatform Broadcast
FROM American