Skip to main content

Timeline for Searching a string with text search

Current License: CC BY-SA 3.0

3 events
when toggle format what by license comment
May 8, 2017 at 21:26 comment added user650881 @RolandIllig I believe that even in C++ post increment is more common. However, personally I think preincrement is a desirable habit both for clarity and because it doesn't rely on the interpreter to optimize out the unused assignment. Arguably the optimization is a micro-optimization but I find the habit costs me nearly nothing and helps reduce cognitive load.
May 8, 2017 at 6:48 comment added Roland Illig Agreed, except for the remark on post-increment. In languages other than C++ it is more common to write i++ instead of ++i.
Feb 6, 2017 at 23:42 history answered user650881 CC BY-SA 3.0