‹ 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. bobmarleybiceps · · focus · HN ↗
      never occurred to me to write a comment there, but it actually looks kind of clean imho. Really old C code looked like

      void func(var1, var2) int var1, char* var2. { ... }

      perhaps some legacy from that? Probably not, but just first thing that popped into my head since it feels similar :shrug:

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.