Function naming convention when with qualifiers: adj+verb, verb+adv or adv+verb?

Viewed 20

For example, for names comprehensiveInspect, inspectComprehensively, and comprehensivelyInspect, which to choose?

'inspectComprehensively' obeys syntax, but I have never seen a function name ending with an adverbial.

1 Answers

You only need "comprehensively" if it's an option. Otherwise, you document that the inspection is comprehensive.

func inspect(comprehensively comprehensive: Bool = true)
Related