2 ms·
That's not a deeper lesson. A deeper lesson is to understand where the pointer points to and then decide accordingly.
by kccqzy 4y ago
That's not a deeper lesson. A deeper lesson is to understand where the pointer points to and then decide accordingly.
- Beltalowda 4y agoThat is pretty much what I said, except phrased different.
- throwaway894345 4y agoIt sounded to me like you were saying "avoid pointers by default" (bad advice IMO) rather than "if it matters, verify whether the pointer escapes" (good advice IMO).