News for hackers. Stuff that matters.
Re:Curl is C by mundanevoice on Tuesday March 28, 2017 @12:52AM (#13974179)
This is from servo codebase - https://github.com/servo/servo/blob/master/components/domobj...

Take a look at this. It isn't as simple and clear as C/C++ for example and requires significant investment in parsing and understanding the code.

Re:Curl is C by mkawia on Tuesday March 28, 2017 @02:45PM (#13979431)
That's quote ,a library that generates code for you at compile time ,it takes code as input,has it's own syntax. It's like compile-time reflection.

It's not code rust programmers would normally write, I'm one of those programmers. I'm glad some libraries like serde,rocket and diesel are using it to generate code instead of doing run-time analysis.

Re:Curl is C by pcwalton on Tuesday March 28, 2017 @12:02PM (#13977740)
You quoted a macro definition. The equivalent in C++ would be heavy preprocessor use, which is usually much worse.