Bug 21260 – Constraints on user code are private, so user cannot check them or understand what they do

Status
NEW
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-09-17T18:09:36Z
Last change time
2024-12-01T16:37:38Z
Assigned to
No Owner
Creator
Andrei Alexandrescu
Moved to GitHub: phobos#10439 →

Comments

Comment #0 by andrei — 2020-09-17T18:09:36Z
Example: https://dlang.org/library/std/algorithm/iteration/each.each.html isForeachIterable and isRangeIterable are private and rather complex. They are neither documented, nor accessible to user code. The user's only chance is peruse the source code or "build and pray". All constraints on public-visible code should have public visibility.
Comment #1 by robert.schadek — 2024-12-01T16:37:38Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10439 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB