food for thought - swift 5 released - bottom types, string interpolation, and stuff.
Mike Franklin
slavo5150 at yahoo.com
Fri Apr 12 04:19:19 UTC 2019
On Friday, 12 April 2019 at 02:29:38 UTC, Walter Bright wrote:
> No they don't. For example, if I saw "isOdd" in code, I'd
> wonder what the heck that was doing. I'd go look up its
> documentation, implementation, test cases, etc., find out "oh,
> it's just doing the obvious thing", and be annoyed at the waste
> of my time.
>
> It wastes the time of everyone reading the code, documenting
> the function, and the QA staff. It hides the useful stuff in
> the library when it's alongside a morass of junk like this. It
> wastes the time of the poor shlub perusing the library. It
> makes the library look like a bunch of filler rather than
> useful stuff.
>
> I don't believe anybody's code is so well-documented that this
> is all that's left. Meaning you're wasting your time
> documenting the wrong things.
>
> I call this sort of stuff the "Illusion of Progress".
And what do you have to say about this gem?
https://github.com/dlang/dmd/blob/4c65b8726a66314e12ad1cad66b099d358e7165d/src/dmd/optimize.d#L62-L65
Or this?
https://github.com/dlang/dmd/blob/master/src/dmd/clone.d#L150-L154
Both of which were added by you. It's the same thing.
Mike
More information about the Digitalmars-d
mailing list