Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
In Swift just through a var, pretty much like C# but in a more innovative way :P
Though I like ur idea, might try it soon 😁 -
iridic4078y@hyvte @Krokoklemme @gitpush
Strongly disagree actually. While technically it might be the same, it is a big difference in coding style and the next dev that has to read the code has to do type inference in his brain... -
@iridic while this is a downside of using var, but IDEs are now advanced just put the cursor over the variable name and a tooltip will show up and tell you it's type. As for Swift, we can use for example: var myArray: [String] = getNames()
And I do that since XCode does not do that 😒 -
@iridic I dont use it and I dont recommend to use it. But in this case it is possible
Related Rants
I have become so lazy that I write things like
int reservations = getReservations()
and then use the IDEs quickfix to change int to Arraylist<Reservation>
Saves me roughly 15 characters but its always worth it :D
undefined
optimization
ide
lazy