3 ms·
Really ? Look at this code: https://github.com/danfis/libccd/blob/master/src/ccd.c https://github.com/danfis/libccd/blob/master/src/ccd.c Looks like great C cod
by je42 11y ago
Really ? Look at this code: https://github.com/danfis/libccd/blob/master/src/ccd.c https://github.com/danfis/libccd/blob/master/src/ccd.c
Looks like great C code doesn't it?
Still you see lots of plumbing:
1. call of init functions
2. unsafe array/pointer usage
3. goto
I rather use C++'s functional constructs rather than the imperative ones.
It is less code, that directly self-explains the business logic; instead of being littered with (unsafe) plumbing code.
And IF I find a performance bottleneck - I can still opt to use/develop an unsafe lowlevel version.