JuliaLang/julia

Show similar functions in docstrings

Open

#23,763 建立於 2017年9月19日

在 GitHub 查看
 (3 留言) (3 反應) (0 負責人)Julia (48,709 star) (5,773 fork)batch import
docsgood first issuehelp wanted

描述

I think discoverability would be greatly enhanced, if there would be some hints at similar functions in the docstrings. I imagine a line of See also: ...function names... which should be generated from a table of related functions automatically.

This came to my mind when looking at the docs of pop!. The functions shift! and splice! offer solutions to similar problems, but their names cannot be guessed from each other.

pop!(collection, key[, default])

  Delete and return the mapping for key if it exists in collection, otherwise return default, or
  throw an error if default is not specified.

[...]

See also: shift!(), splice!()

Of course, the wording is open for bike shedding 👍

貢獻者指南

Show similar functions in docstrings · JuliaLang/julia#23763 | Good First Issue