A
A
Arkady Vinogradov2021-03-06 09:46:54
Kotlin
Arkady Vinogradov, 2021-03-06 09:46:54

Why make overloaded functions if there is an Any type?

Why make overloaded functions if there is an Any type and we can just make a function that takes the Any type

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
illuzor, 2021-03-06
@usov-dmitriy

This is not javascript for you.
Static typing was not invented for Any to be passed everywhere

V
Vasily Bannikov, 2021-03-06
@vabka

So that everything is typed to the maximum.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question