Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 392 Bytes

receiver-naming.md

File metadata and controls

11 lines (6 loc) · 392 Bytes

Pattern: Inconsistent receiver name

Issue: -

Description

By convention, receiver names in a method should reflect their identity. For example, if the receiver is of type Parts, p is an adequate name for it. Contrary to other languages, it is not idiomatic to name receivers as this or self.

Further Reading