On Tue, 23 Aug 2022 at 19:09, David Gebler <davidgeb...@gmail.com> wrote:
> I can just see floor_div and floor_mod getting mixed up > with fdiv and fmod but maybe I'm overthinking it, maybe it wouldn't really > be an issue. Maybe there's alternative names you could give them though > again I suspect the ones you've chosen are the most obviously sensible to > describe what they do. > Is this not one time where using a flag to change a function's behaviour makes sense? So rather than fdiv, floor_div, int_div (etc) we have div($1, $2, DIV_FLOAT), div($1, $2, DIV_FLOOR), div($1, $2, DIV_INT). I'm not proposing div (non namespaced) as the name as I expect it clashes with a lot of UDF's, but it works well in this example.