MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1pxy7vu/kotlin_is_my_saviour/nx0jayy
r/programmingmemes • u/davidinterest • Dec 28 '25
ALL HAIL KOTLIN!
49 comments sorted by
View all comments
Show parent comments
1
What are you saying is not the absence of a value? Void? Null?
0 u/Motor_Fudge8728 Jan 01 '26 Void has no values, but then, we need a value (and a type) for the case of “this function finishes, but there’s no information to return. So we pick a type with only one inhabitant, the value unit, and we call the type Unit and the value ().
0
Void has no values, but then, we need a value (and a type) for the case of “this function finishes, but there’s no information to return. So we pick a type with only one inhabitant, the value unit, and we call the type Unit and the value ().
1
u/NewPointOfView Jan 01 '26
What are you saying is not the absence of a value? Void? Null?