News for hackers. Stuff that matters.
Re:Why I Write Games in C (yes, C) by z3phyr on Saturday September 21, 2019 @01:33PM (#21036697)
I like rust, but for me, it is significantly more difficult to read and write. Same can be said about C++ with extreme STL code..

I prefer to read and write simple C like syntax. I would love it if I can get Rust concept of borrowing in C, or even simple operator overloading..

Re:Why I Write Games in C (yes, C) by Johan-bjareholt on Sunday September 22, 2019 @08:35AM (#21041081)
Ironic, the most complicated thing for me to understand when I started writing rust was borrowing and lifetimes. The rest of the common features of Rust isn't too complicated to understand.
Re:Why I Write Games in C (yes, C) by z3phyr on Sunday September 22, 2019 @12:26PM (#21042188)
Understanding the concepts is not the issue with me (as of now). It is the hard to read syntax (my personal opinion!). It puts a lot strain on my mind. Same is the case with C++ with extreme use of STL. I have difficulty in reading that, although with clear mind, I will eventually get the code, it is not fun.
Re:Why I Write Games in C (yes, C) by wwright on Saturday September 21, 2019 @01:44PM (#21036764)
You’re free to use Rust that way if you prefer.
Re:Why I Write Games in C (yes, C) by Avamander on Saturday September 21, 2019 @07:56PM (#21038693)
Same, I heavily prefer less symbols in my code. I think it might also relate to how I find it much harder to remember long formulas but than remembering the sentence describing the formula. If I could type for example `brw x` instead of `&x` I think I'd like it more - I guess I like it more Python-y?
Re:Why I Write Games in C (yes, C) by cdirkx on Saturday September 21, 2019 @08:54PM (#21038922)
You could use a macro :)

  macro brw($expr:expr) { &$expr }
And use it like 'brw!(x)' instead of '&x'.