News for hackers. Stuff that matters.
Re:Remove the ++ and –- operators by vlunkr on Thursday December 03, 2015 @06:02PM (#10673387)
I've always felt like Python and Ruby chose to drop these to discourage you from writing traditional loops, as they have their own enumerators to accomplish the same thing. And, as the author mentioned, so does Swift. Obviously you still have to do a '+=' occasionally, but I don't find myself doing that often.
Re:Remove the ++ and –- operators by rtpg on Thursday December 03, 2015 @08:53PM (#10674109)
Yeah, I think the core difference between i++ and i+=1 (expression vs statemrnt) is mainly useful in situations where higher level structures are available in languages that aren't C