News for hackers. Stuff that matters.
Re:Writing code that writes code – Hack Codegen by hnruss on Thursday August 20, 2015 @09:02PM (#10095450)
"Notice that the manual section uses an ID to match it with the corresponding section when regenerating the code so that is placed in the same location."

    public function getName(): string {
      /* BEGIN MANUAL SECTION User::geName */

Wonder how well that works if there's a typo in the section comment?
Re:Writing code that writes code – Hack Codegen by zeroonetwothree on Thursday August 20, 2015 @09:37PM (#10095535)
I believe the comment is generated by the codegen, so it won't have a typo.
Re:Writing code that writes code – Hack Codegen by hnruss on Friday August 21, 2015 @12:32AM (#10095957)
That makes more sense, thanks.