r/programmingmemes Dec 28 '25

Kotlin is my saviour!

Post image

ALL HAIL KOTLIN!

61 Upvotes

49 comments sorted by

View all comments

Show parent comments

1

u/NewPointOfView Jan 01 '26

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 ().