Re: [dev] Learn C

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Tue, 26 Mar 2019 20:37:18 +0100

> * do not use enum (hard rule)
> * do not use typedef (hard rule)
> * use sized types: u8 u16 i64 float32 etc... you can use the C
> preprocessor to fix that, but in some case, as a good tradeof (for instance in
> "object oriented C code"), add a suffix to your type (u8_t, struct my_class_t), then
> for instance you can nest structs, struct base_type_t base_type.
> * I personnaly add a macro #define loop for(;;) and use only 1 loop
> statement (hard rule)

:/
Received on Tue Mar 26 2019 - 20:37:18 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 26 2019 - 20:48:08 CET