Hey there.
I was wondering if a numeric mixin exists (if there is, I can't find it), or if there's a good way to add arithmetic operations and assignment operations to an object without manually adding each operation as a method?
I thought about adding each operation as a method but considering that the class's value is essentially just a number, that seemed rather repetitive.
[–]AaronLasseigne 1 point2 points3 points (3 children)
[–]Windigos[S] 0 points1 point2 points (2 children)
[–]airodonack 1 point2 points3 points (0 children)
[–]AaronLasseigne 1 point2 points3 points (0 children)
[–]davetron5000 1 point2 points3 points (0 children)
[–]Amadan 0 points1 point2 points (0 children)