Provide references to other common names#4985
Conversation
| joined directly without anything in between them (often called $(D flatten) | ||
| joined directly without anything in between them (often called `flatten` | ||
| in other languages). | ||
|
|
There was a problem hiding this comment.
Looks a bit better IMO if you merge these two clauses, mentioning both alternate names in one go. Nothing what would make me reject this trough.
There was a problem hiding this comment.
oops, it seems the other clause i'm talking about does not show above. It is just just below what is shown.
std/range/primitives.d
Outdated
| Completes in $(BIGOH n) time for all other ranges. | ||
|
|
||
| This is similar to `drop` (and `dropRight`) in other languages. | ||
|
|
There was a problem hiding this comment.
Slightly misleading, since D also has a drop function. Better alternative would be to mention it's difference to drop(), and perhaps also add (if it has not already) a similar mention to description of drop().
|
All in all, I like this. |
|
"often called |
9b2c51d to
bf4764f
Compare
1776e7b to
3d5b736
Compare
|
I found @nordlow's very reasonable comment at phobos-next:
and thus added a mention in the docs for |
JackStouffer
left a comment
There was a problem hiding this comment.
looks good minus one issue
std/range/package.d
Outdated
| a range primitive, the returned range will also provide that range | ||
| primitive. | ||
|
|
||
| See_Also: $(LREF chain) to chain values to ranges |
There was a problem hiding this comment.
A reference to itself?
There was a problem hiding this comment.
I wanted to reference only ...
3d5b736 to
8d5b051
Compare
Fixed & rebased. |
|
Auto-merge toggled on |

So I found this old discussion:
So here's an attempt to make the docs a little bit nicer (and Google-friendlier) by providing a couple of reference to other common names in other languages or Phobos.
Should we maybe use a category like
Other names?