A
A
Arsen2021-03-05 21:22:26
Kotlin
Arsen, 2021-03-05 21:22:26

Why did Kotlin partially abandon primitives?

I know that if a reference variable is equal to null, then it is then cast as primitive so that it is zero. I wonder why they refused.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-03-05
@Martian97

1. null was abandoned in Kotlin, because this is a famous billion dollar mistake
2. Primitives were not abandoned - they are called basic types

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question