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

mate aiueo at aiueo.aiueo
Sun Apr 14 00:42:20 UTC 2019


On Sunday, 14 April 2019 at 00:27:18 UTC, Timon Gehr wrote:
> There are of course other reasons why you would want to add 
> functions with a simple implementations, I already mentioned 
> standardization of function names, also, e.g. filter!isOdd is 
> both faster to read and easier to type than filter!(x=>x&1).

Would not you check the function definition if you saw `isOdd()` 
in the code?

> Furthermore, it's just not nice when you are solving a problem 
> and notice that a lot of functions you need to naturally 
> express it are missing from the standard library and you need 
> to add them to your own utility library first, presumably being 
> too lazy to add the correct template constraints.

Maybe your math utils library(ies) would be popular on dub. Even 
if some template constraints are missing, they would probably get 
fixed over time by some willing contributing users.


More information about the Digitalmars-d mailing list