They are addressed in different ways.
In the first case, someFloat is in the SomeClass . He gained access to SomeClass.someFloat .
In the second case, someFloat is in the module area. He only got access with someFloat .
The first method is preferred. As a rule, it is more difficult to find identifiers in the module namespace because they can be easily drowned out by all identifiers in the standard library or the / cocoa framework.
source share