There even is one upside to the keyword fun
over the other alternatives - it has the same number of characters as val
and var
, making classes just a tad more readable because all the names for properties and functions start on the same column.
5 Likes