-
Notifications
You must be signed in to change notification settings - Fork 42
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
Apply style guide #2916
Apply style guide #2916
Conversation
How about extending the style guide with a rule for always having a comma after the abbreviations i.e. and e.g.? |
Opinions on top level vs top-level? |
chapters/inheritance.tex
Outdated
@@ -579,7 +580,7 @@ \section{Redeclaration}\label{redeclaration} | |||
A \lstinline!redeclare! construct as an element replaces the declaration of a local class or component with another declaration. | |||
Both \lstinline!redeclare! constructs work in the same way. | |||
The \lstinline!redeclare! construct as an element requires that the element is inherited, and cannot be combined with a modifier of the same element in the extends-clause. | |||
For modifiers the redeclare of classes uses a special short-class-definition construct; that is a subset of normal class definitions and semantically behave as the corresponding class-definition. | |||
For modifiers the redeclare of classes uses a special short class definition construct; that is a subset of normal class definitions and semantically behave as the corresponding class-definition. |
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.
Similarly. I believe we here should consistently view class-definition and short-class-definition as the grammar constructions; except I don't know what subset should be replaced with.
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.
Fixed apart from the subset question. Please check this one extra carefully, as I also made some small improvements to language.
What about calling it a special case rather than a subset?
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.
Special case sounds good.
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.
Done. To avoid repeating the word special I removed it before short-class-definition
. Please resolve if good.
Addressed comment (by Hans): - modelica#2916 (comment)
Addressing comment by Hans: - modelica#2916 (comment)
Addressing comment by Hans: - modelica#2916 (comment)
Addressing comment by Hans: - modelica#2916 (comment)
Based on comment by Hans: - modelica#2916 (comment)
By accident, this commit also includes added empty lines around sectioning commands, which should have been committed separately.
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Addressing comment by Hans: modelica#2916 (comment)
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
I applied your suggestions, even though I think the other variant reads better. It would be great if we could get at least a third opinion on this, but we can open a separate style guide issue for this to get more input from the group. Going back to the other variant should be very easy in case that is the outcome of group discussion. Edit: It's only the ones starting with The that I don't like. The ones starting with A read better now than before. |
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.
Looking good now.
Correct double for introduced in #2916
Fixes #2713.
This is the follow-up to #2884, where the style guide was created. This PR is about getting the document more in line with that style guide.
Currently in Draft state to reflect that there are still rules in the style guide that I plan to apply as part of this PR. Note that making the document comply with the style guide in every aspect is beyond the scope of this PR (and not expected to be in the scope of any specific PR in the future either). For example, I have no intention of finding and fixing all occurrences of non-American English.