Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add standard section "Limitations" to ddoc #19627

Open
dlangBugzillaToGithub opened this issue Oct 6, 2019 · 2 comments
Open

Add standard section "Limitations" to ddoc #19627

dlangBugzillaToGithub opened this issue Oct 6, 2019 · 2 comments

Comments

@dlangBugzillaToGithub
Copy link

Berni reported this on 2019-10-06T14:34:26Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=20272

CC List

  • Seb

Description

It would be nice to have an additional section "Limitations". In this section, stuff, that does not work, but is not considered a bug, can be documented.

For example: In std.zip I used it, without being aware that this is not a standard section. Among others, this section describes, that some compression methods and encryption is not supported.

One more usecase: abs from std.math does not work correctly for int.min (and other signed integral types). Fixing this causes trouble or slows down the code. (Same for std.algorithm.comparison: min with NaNs). To avoid this, it's better to document the limitations. Putting this in the "Bugs" section would cause some confusions, because a bug is something, that should be fixed sooner or later. But here we already decided to not fix it.
@dlangBugzillaToGithub
Copy link
Author

greeenify commented on 2019-10-06T21:44:23Z

Ddoc doesn't have pre-defined sections. It uses the colon to do so.

So as long as you write sth along:

Limitations:
   Your limitations here.

This will be displayed similarly to the other "sections".

Ddoc supports custom macros with which you could create a custom warning . However, it doesn't look like we'll get custom warning boxes (https://github.com/dlang/dlang.org/pull/2308).

@dlangBugzillaToGithub
Copy link
Author

dlang (@Vild) commented on 2019-10-07T07:17:31Z

Similarly, but not identically. See discussion of https://github.com/dlang/phobos/pull/7199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant