Ready for review: new std.uni

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Jan 11 16:14:40 PST 2013


On Fri, Jan 11, 2013 at 01:36:21PM -0800, Walter Bright wrote:
> On 1/11/2013 1:21 PM, Dmitry Olshansky wrote:
> >12-Jan-2013 00:50, Walter Bright пишет:
[...]
> >>buildTrie:
> >>
> >>     Contains a number of functions that return auto, but no mention
> >>of what is returned. While I like auto, in these cases it is not
> >>helpful, because the user needs to know what type is returned.
> >>
> >
> >Trust me you won't like it when you see it :) Part of the reason it's
> >hidden.  But you are correct that documentation on these artifacts is
> >*ehm* ... sketchy.  Will fix/update.
> 
> If the compiler type is hard to grok, ok, but at least the
> documentation should make it clear what is returned.
[...]

Would an alias be appropriate in this case, so that we can put a
concrete name to the function return type? Or is that an abuse of alias?


T

-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it. -- Brian W. Kernighan


More information about the Digitalmars-d mailing list