Wednesday, February 11, 2004 4:17:41 AM UTC
To be honest with you, when I saw the title "Nine Reasons Not To Use int", I thought "only nine"? I've had a love/hate relationship with int, but it really has nothing to do with the technology, but rather how/when it's implemented.

The technology itself is certainly useful, no doubt about that. My gripe is when you must design an object model around the int gotchas for trivial reasons that have nothing to do with the application/library you're writing. Specifically, I've been on projects where virtually every object had to use ints for numbers. This may not sound like a big deal, but trust me, it really compromises the design and literally gives me headaches.

Again, it's very useful when the solution fits the problem. I'm using it heavily in an application utilizing numbers. Being able to use numbers _anywhere_ is huge.

Up with int! Down with its misuse!
Wednesday, February 11, 2004 4:23:10 AM UTC
ROTFLMAO
Scott Hanselman
Comments are closed.
Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.