-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a46e62e
commit 305736a
Showing
1 changed file
with
26 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment is on this function:
mutating func emitDeinit(_ storage: Operand, at site: SourceRange)
The naming of the function is appropriate, IMO, and it suggests that the function's primary purpose is to emit the deinitializer. Therefore I would suggest documentation that emphasizes that purpose instead of the possiblity that it is being used in the context of a user error when nothing will be emitted.:
I think there's more we can do with documentation conventions to get rid of boilerplate, but IMO the several functions documented in this style would all be better changed as above.