4 ms·
Couple of things that are still not clear to me, even when people keep saying that it's similar to C#: - How about Garbage Collection? - Many mentions to "typ
by knocte 12y ago
Couple of things that are still not clear to me, even when people keep saying that it's similar to C#:
- How about Garbage Collection?
- Many mentions to "type inference", is it then a statically-typed language? Or is it hybrid?
- krig 12y ago- Garbage Collection is handled via reference counting and ARC. No automatic cycle detection, the programmer has to manually track and resolve reference cycles. Same as using ARC in Objective C. - It is a statically typed language. Type inference is the same mechanism as is used in C++11 with the auto keyword. Basically, anywhere the compiler can "guess" the type, you don't have to be explicit about it. Unless you want the variable to have a different type from the inferred type, that is.