Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is so sad obvious it’s painful.

Arithmetic addition and sequence concatenation are very very different.

——

Scala got this right as well (except strings, Java holdover)

Concatenation is ++



Python managed to totally confuse this. "+" for built-in arrays is concatenation. "+" for NumPy arrays is elementwise addition. Some functions accept both types. That can end badly.




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

Search: