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

Basile B. b2.temp at gmx.com
Sat Apr 13 12:13:36 UTC 2019


On Saturday, 13 April 2019 at 07:04:23 UTC, Julian wrote:
> On Saturday, 13 April 2019 at 04:40:08 UTC, Walter Bright wrote:
>> On 4/12/2019 9:15 PM, Nick Sabalausky (Abscissa) wrote:
>>> If for you, they're the same level of abstraction, that's 
>>> great. For most, it isn't.
>>
>> If you want to write a library of such, and contribute it to 
>> Dub, feel free. If you find an audience for it, great.
>
> Done: https://code.dlang.org/packages/isodd
>
> It doesn't seem like there's a way to run library unit tests
> with dub?
>
> I'll add non-manpage documentation later.
>
> And a logo, of course.

Hi posted a review on IRC:

[13:10] <B4S1L3> It's a joke but I already see several bad things
[13:11] <B4S1L3> 1. parameter should be const to prevent 
superfluous template instantiation
[13:11] <B4S1L3> 2. no module name
[13:11] <B4S1L3> 3. pragma(inline, true) not there
[13:12] <B4S1L3> 4. no test for BigInt
[13:12] <B4S1L3> "X" needs works, see review comments ;)
[13:13] <alphaglosined> expression isOdd(T:ulong)(T value) => 
value & 1;
[13:13] <B4S1L3> 5. floating point is accepted
...
[13:15] <B4S1L3> so you see, this isOdd function we joke about. 
The package is not good. It's not phobos-grade at least


More information about the Digitalmars-d mailing list