Jump to content

Topic on Talk:Requests for comment/TitleValue

Tim Starling (talkcontribs)

Brion and I are both against the use of boolean parameters in public interfaces, since they severely impair the readability of calling code. This is documented at Manual:Coding conventions/PHP#Functions and parameters. The $withNamespace and $withSection parameters fall under this restriction.

Duesentrieb (talkcontribs)

Ok, will amend.

Tim Starling (talkcontribs)

You may want to consider mutator chaining, like in Message.

Duesentrieb (talkcontribs)

Hm... you could use a mutator to strip the section, but not to strip the namespace - there is always a namespace.

Reply to "Boolean parameters"