4 ms·
First needlessly killing often used features[1] seemed like a horrible polarizing 'python3' move. But then: [1] for(c=0,c<l,c++) ... is really syntax of the p
by singularity2001 10y ago
First needlessly killing often used features[1] seemed like a horrible polarizing 'python3' move. But then:
[1] for(c=0,c<l,c++) ...
is really syntax of the past.
- JimDabell 10y agoI can't agree with C-style for loops being an "often used feature". I've been developing for iOS since 2008 and I've barely used them at all in that entire time, and never with Swift. Both Objective-C and Swift have better options available. The only time you really use C-style for loops is when you're writing C. If you want to write C, then write C. But if you're writing Swift, then write Swift – don't try to write C in Swift.
- pjmlp 10y agoThat is what other non C derived languages use while and repeat for.