News for hackers. Stuff that matters.
Re:Parsoid in PHP, or There and Back Again by b3kart on Thursday February 13, 2020 @06:05AM (#22316793)
Reformat your example slightly, and suddenly it's not so bad:

  public function html2wikitext(
    PageConfig  $pageConfig, 
    string      $html, 
    array       $options = [],
    ?SelserData $selserData = null
  ): string
I am sure an IDE could do that for you.

That being said, I think the Python way of formatting type annotations ("variable : type") is more readable than C-style "type variable = ...", especially when the annotation is optional.

There are no comments on this comment yet.