-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Visibility hidden #995
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
Visibility hidden #995
Changes from all commits
3879045
88ae0c1
368fb7f
17c332d
8b9c6c5
22eae8a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
#include "cast.h" | ||
|
||
NAMESPACE_BEGIN(pybind11) | ||
NAMESPACE_BEGIN(PYBIND11_NAMESPACE) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it be simpler to add the visibility attribute to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm against that, for selfish reasons :). I have several other projects that use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I guess that's why |
||
|
||
/// \addtogroup annotations | ||
/// @{ | ||
|
@@ -478,4 +478,4 @@ constexpr bool expected_num_args(size_t nargs, bool has_args, bool has_kwargs) { | |
} | ||
|
||
NAMESPACE_END(detail) | ||
NAMESPACE_END(pybind11) | ||
NAMESPACE_END(PYBIND11_NAMESPACE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird question, but: Why two spaces after a period?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In monospace fonts, it is visually closer to, e.g., a TeX inter-sentence space. It's also consistent with what you get from tools like
man
when used in a terminal. And while I do think it looks a bit better, it's mainly habit: I do it without even thinking about it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also (I just noticed) vim does this automatically when rewrapping (e.g. if a line ends with a
.
). I'd be quite surprised if there isn't an option to control that, but it isn't something I turned on specifically.