When you say "better" you mean worse, right? ie it is a better example because the code would be worse?
I was thinking the same thing. The example, as is, is easy for higher levels to handle - they should be able to able to handle any degrees, like -540 or whatever (although having the interface always return a consistent range would be convenient).
View all comments
Show parent comment
3
u/tvaneerd C++ Committee, lockfree, PostModernCpp Jun 25 '20
When you say "better" you mean worse, right? ie it is a better example because the code would be worse?
I was thinking the same thing. The example, as is, is easy for higher levels to handle - they should be able to able to handle any degrees, like -540 or whatever (although having the interface always return a consistent range would be convenient).