News for hackers. Stuff that matters.
Re:Curl is C by pcwalton on Monday March 27, 2017 @12:06PM (#13968869)
Can you elaborate as to the specific syntax problems you see with Rust?
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.
Re:Curl is C by sullyj3 on Monday March 27, 2017 @11:37PM (#13973840)
The type and lifetime annotations can get pretty confusing.
Re:Curl is C by pcwalton on Tuesday March 28, 2017 @12:03PM (#13977746)
Do you have a specific proposal as to what lifetime syntax should be changed to?