|
|
|
|
|
by saagarjha
2093 days ago
|
|
Step number one is not naming your things "something". I for one am glad I can use "auto" instead of "std::vector<int>::size_type" in my codeāin this case the actual type this couldn't matter less; all you need to know is that it's some kind of unsigned integer. The same is true for Swift, where it's generally a lot more useful to know you have some type of sequence rather than "I have a LazyMapSequence<LazySequence<[Int]>.Elements, String>". Plus, C++ is one of those languages where certain things have types that you cannot write down, so auto is required to use certain parts of the language! |
|