RAIIght

I’m officially coining the term RAIIght

As in - “Don’t use raw pointers, use smart pointers - it’s the RAIIght thing to do.”

On the chat: http://chat.stackoverflow.com/transcript/message/5894826#5894826

First answer: http://stackoverflow.com/a/13016719/673730

0 notes

Reason #3 & #6

I see you want to know whether `x += y` is faster than `x = x + y`. Question: have you tried profiling? Before asking any sort of optimization question, profile. If you find something counter-intuitive, then ask a question. Why is `x+= y` faster? It’s definitely not (excluding weird operator overloads), but if it were… now that’s a question of interest.

0 notes