2 ms·
That doesn't change the usefulness of being able to create new data types from existing ones. With operator overloading or operators as methods, you can treat u
by goatlover 10y ago
That doesn't change the usefulness of being able to create new data types from existing ones. With operator overloading or operators as methods, you can treat user your new data types as primitives.
That's very convenient when you want your complex numbers to work just like ints and floats.
- taneq 10y agoI didn't mean to say it's not useful, just that it's much simpler than actually defining a new primitive type, which is how I originally interpreted the term.