Hacker News new | past | comments | ask | show | jobs | submit login

Why can you make assumptions about operation overloads but not functions?



Because there is nothing to make assumptions about. In the example code, both multiplication and division have a scalar on one side, there's no possible ambiguity of behavior. But there is the eternal question of terminology: do you specify dimensions by "axis" or "dim" and does your API actually use both terms in different places?

(that's what I think the GP meant, anyway).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: