numo-narray
numo-narray copied to clipboard
Define ! operator as an alias of Numo::NArray#inplace
a.inplace + 1
is equivalent to
!a + 1
Any problem?
- In Ruby, ! is used to be added to the name of some destructive method.
- Some ruby committer seems declined to change the semantics of +=.
!!
I've recently talked with matz. We are thinking to
- If += method is defined, call it
- Define +! operator newly
etc
!a looks like returning boolean value
I agree. > !a looks like returning boolean value
I see. I leave this issue just an idea.