std.random suggestions
monkyyy
crazymonkyyy at gmail.com
Sat Sep 20 19:31:48 UTC 2025
On Saturday, 20 September 2025 at 18:42:03 UTC, IchorDev wrote:
> On Friday, 19 September 2025 at 16:38:59 UTC, Denis Feklushkin
> wrote:
>> On Thursday, 18 September 2025 at 12:53:25 UTC, IchorDev wrote:
>>> If anything, std.random is very well designed because it uses
>>> the range interface in a clever way.
>>
>> Range interface is not unique to `std.random`.
>
> That's what makes it well designed, obviously. You're the one
> who said
>
>> I don't like the way the module std.random is designed
>
> An integral part of why its design is good is that it uses the
> range interface rather than reinventing the wheel. Someone like
> you who can't understand the good parts of `std.random`'s
> design has no place in suggesting changes to it.
Using ranges where they dont belong is bad design; I think v3
will deprecate at least my complaint that nullable shouldnt be a
range
More information about the Digitalmars-d
mailing list