You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The absolute value of a vector mathematically is it's length, so I guess they didn't want to trip up people who would expect abs(vec) to return the length.
This would be adding an overload abs(vector v), not improving the existing abs(number n).
Doing this would warrant deprecating positive and the potential name confusion from Sparky's message above. Gates also have "positive" instead of "abs(v)" so I think it's fine keeping it as is.
Activity
thegrb93 commentedon Oct 16, 2023
The absolute value of a vector mathematically is it's length, so I guess they didn't want to trip up people who would expect abs(vec) to return the length.
vurvdev commentedon Oct 17, 2023
This would be adding an overload
abs(vector v), not improving the existingabs(number n).Doing this would warrant deprecating
positiveand the potential name confusion from Sparky's message above. Gates also have "positive" instead of "abs(v)" so I think it's fine keeping it as is.vurvdev commentedon Oct 18, 2023
Also this would be a suggestion, so..