food for thought - swift 5 released - bottom types, string interpolation, and stuff.
Timon Gehr
timon.gehr at gmx.ch
Sun Apr 14 12:13:09 UTC 2019
On 14.04.19 10:27, Walter Bright wrote:
> On 4/13/2019 7:20 PM, Timon Gehr wrote:
>> It's not even consistently applied in Phobos.
>
> That's a general problem with anything that's been worked on for 20
> years by successive waves of different people with different ideas.
> Phobos has accumulated a lot of technical debt.
> ...
The right answer here really isn't to remove the `max` function.
> BTW, did you know that Phobos used to contain secant() and cosecant()
> functions? I removed them :-)
That seems like a bad idea even assuming your criteria. `sec(x)` rounds
once (if implemented correctly) while `1/cos(x)` rounds twice.
Phobos also contains `sin` and `cos` functions. Please don't remove
either of them.
More information about the Digitalmars-d
mailing list