food for thought - swift 5 released - bottom types, string interpolation, and stuff.

Timon Gehr timon.gehr at gmx.ch
Mon Apr 15 12:54:58 UTC 2019


On 15.04.19 09:44, Walter Bright wrote:
> On 4/14/2019 5:13 AM, Timon Gehr wrote:
>>> 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.
> 
> Of course, they were implemented simply as reciprocals.
> ...

Then they were incorrect and removing them was reasonable. But of 
course, in this case this anecdote has no bearing on the current 
discussion: you removed them (instead of fixing them), because they were 
too hard to implement, not because they were too easy to implement. :)


More information about the Digitalmars-d mailing list