‹ BackHN Continuity

Thread

EDG C++ front-end goes public

249 points · 129 comments · iandinwoodie

  1. cyberax · · focus · HN ↗
    It has an interesting code style, the comments go _after_ the function definition but before the opening bracket.

    It looks weird, but it actually makes sense! The flow is more natural - first the function definition, and then the explanation of what it does. It also avoids repeating the function name.

    1. 1718627440 · · focus · HN ↗
      I write comments about what a function does and it's interface before, but comments about the implementation after. Also my pre- and post-conditions go there of course. (I'm mostly writing in C.)
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.