[Issue 18124] Over-use of `auto` return type in std.regex
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 25 17:02:21 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=18124
Seb <greensunny12 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |greensunny12 at gmail.com
Resolution|--- |WONTFIX
--- Comment #1 from Seb <greensunny12 at gmail.com> ---
Advantage of `auto`:
- we can change the API
- less visual clutter (that's subjective though)
See the discussion at https://github.com/dlang/phobos/pull/5963
We have to be careful here, this a bikesheeding topic and a lot time can be
wasted with discussing the pros and cons.
A good improvement, however, could be to improve Ddoc or documentation, s.t. it
helps the reader more what `auto` could be mean and whats capabilities one can
expect from it. Please feel free to open a respective issue with concrete for
dlang.org ;-)
--
More information about the Digitalmars-d-bugs
mailing list