NUMA

Billowed Ascension

Thumbnail of the map 'Billowed Ascension'

Hover over the thumbnail for a full-size version.

Author morvone
Tags author:morvone playable unrated
Created 2009-04-23
Last Modified 2009-04-23
Rating 2 more votes required for a rating.
Map Data

Description i += 1
vs.
i ++

Discuss.

Other maps by this author

Thumbnail of the map 'Binary Recollection' Thumbnail of the map 'import re' Thumbnail of the map 'Positron Sequence'
Binary Recollection import re Positron Sequence

Comments

Pages: (0)

Well,

depends kindof on the language. i += 1 would return i + 1 in like perl, im pretty sure, but yea.

They are completely different things!

i += 1 increments i by 1 and returns void
i++ returns i, then increments i by 1
++i increments i by 1, then returns i

If you're just throwing away the returned value, I normally use i++.

I prefer += 1.