#naming IDisposable처럼 인터페이스 이름에 able 같은 걸 바르면?

less than 1 minute read

DO name interfaces with adjective phrases, or occasionally with nouns or noun phrases.

  • Nouns and noun phrases should be used rarely and they might indicate that the type should be an abstract class, and not an interface.

[.]

DO prefix interface names with the letter I, to indicate that the type is an interface.

  • For example, IComponent (descriptive noun), ICustomAttributeProvider (noun phrase), and IPersistable (adjective) are appropriate interface names. As with other type names, avoid abbreviations.

Names of Classes, Structs, and Interfaces / MSDN

빈곤한 네이밍 풀을 가지고 있어서 이런 규칙은 단물이다. able 접미사를 사용하니 인터페이스 이름이 더 그럴듯하다. 뭔가 할 수 있는 인터페이스라는 거잖아. 내 기억으론 이런 네이밍을 처음 본 건 IDisposable 이었다.