Hacker News new | past | comments | ask | show | jobs | submit login

    void* (*identifier) (void*);

    typedef struct
    {
        /* ... */
    } my_struct_t;


    static return_type
    name_of_function (type *restrict argument)
      {
            int a, b, c;
            /* body */
      }
Just some examples of illegible syntax that's "standard" C. C is not a pretty language. It's small, but it's ugly as sin.



It's nearly impossible to actually parse anything more complex than a pointer to a struct in C because it wasn't written for humans, it is a relic of using a convenient recursive descent parser to parse C's syntax that we end up with `void* (*id) (void*)`...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: