« first day (66 days earlier)      last day (46 days later) » 

02:18
Should flooring an integer return an integer or float?
float
02:50
Rather, you can toss a coin, I think both are equally useful
I'll probably go with float
03:45
Integer
Return an integer
Why do you think disrupting the usual expected return type is a good idea?
Flooring a float returns an integer right?
Don't break the pattern
Go with float if and only if flooring a float returns a float
Be consistent
04:02
Hmm, that's also a good point
The only real difference between an integer and a float in Ash is that integers are arbitrary precision, and for a few operators will return rounded/truncated results (like square root).
I guess you'd expect 2 with q⌊8
Or would you?
And that would make truncate useless
Aside from making truncate useless if the output is an integer, there aren't really any hard advantages for disadvantages for either; it's just whatever makes more sense
 
6 hours later…
10:20
@RedwolfPrograms no I'd expect the full decimal version
But that suggests 8 evaluates as a float
Because otherwise the flooring is useless
@RedwolfPrograms it already is. i does the same thing
Perhaps change the character all together
(my ramble about code page changing wasn't meant to be taken with a serious tone. I've been thinking about how you may have accidentally assumed that I was being strict about it over the last few days, and I'm just clearing it up now. Sorry about that)
However I do mean what I said about consistency. That's something I am serious about: it's a good idea to make it as easy as possible for users of Ash to actually use Ash
 
6 hours later…
16:22
@Lyxal If you expected the full decimal version, then it should return a float. Current truncate is different from i because truncate returns a float, and i returns an integer
And number literals are floats
That way q8 would be the squareroot of 2.828..., not 2
 
5 hours later…
21:06
Okay then. If truncate always returns a float then it should be fine

« first day (66 days earlier)      last day (46 days later) »