Re: Request: Integer Division
- Posted by jimcbrown (admin) Jan 02, 2013
- 1405 views
This really should be in a Request-for-Feature ticket, but...
It's funny how the unintuitive system for requesting features isn't used. Where is it?
I think the syntax is the most contriversal part here.
Maybe you meant "controversial",
I did.
which is pronounced like it is spelled. If you are mispronouncing it, and then phonetically spelling it out, maybe you get "contriversal", but you might get "butterfly" too. I once watched and listened to a local human in the library try to look up "butterfly" by using phonetics, after 5 minutes she said out loud that maybe the 'b' was supposed to be silent, and spelled it out "atrfli", and began looking it up in the card catalog under 'a'.
Nope. It was just a simple typo. (Unlike a similar example in one of your recent posts, http://openeuphoria.org/forum/m/120272.wc - which I consider hypocritical considering your reaction in http://openeuphoria.org/forum/m/117914.wc )
integer X = integer_division(Y,Z)
I see no gain there. You are doing more typing, remembering a new keyword, spending more of your time, and possibly taking more cpu time to set up and execute.
The point of adding a new integer_division() would be to take less cpu time to set up and execute (as compared to the existing intdiv() in std/math.e which is slower as it involves conversion to and operations with floating point numbers).
I wanted to just use the name intdiv() (since that's less typing than integer_division) which saves human time too - but that was already taken. I'm open to alternatives, though. idiv() perhaps?