3 ms·
This is really great! Reading through the source made me look twice though, as I am used to writing C++ so seeing variables defined but not initialised, non-co
by 72deluxe 11y ago
This is really great!
Reading through the source made me look twice though, as I am used to writing C++ so seeing variables defined but not initialised, non-const array starting points as parameters with a separate length parameter (instead of just a reference to a container or a const reference to enforce read-only nature), memcpy instead of copy constructors or copy assignment operators.
Basically, it made me realise how impossible I would find it to write good C!
Really clever entry though, very impressive. I spotted all the issues I mentioned above, looking for mistakes in them and completely missing the actual problem.
- pjmlp 11y ago> Basically, it made me realise how impossible I would find it to write good C! That was my thought when the comparison was with Turbo Pascal 6.0. Luckily in the same year I got Turbo C 2.0, someone made me aware that the school also had the newly released Turbo C++ 1.0 available. Since then, using C instead of C++ or better alternatives, only when I didn't have an option to do so.