Ángel

@angel@triptico.com



No twitter / no facebook / no instagram / no tiktok / no bluesky / no regrets

LA ATALAYA RECORTADA CONTRA EL CIELO (novela)https://librosdelfuturo.es/producto/la-atalaya-recortada-contra-el-cielo/
YO NO SOY PAVEL (novela)https://distrito93.com/catalogo/yo-no-soy-pavel/
wwwhttps://triptico.com
tilde.clubhttps://tilde.club/~angel/
Ann Hell Musichttps://exode.me/accounts/annhell
Keyoxidehttps://keyoxide.org/hkp/1AFAE6809099EB5CD65A4E32B498DDC28F4584FF

Location: 40.4235492,-3.6617828

99 following, 111 followers

0 ★ 1 ↺

[?]Ángel »
@angel@triptico.com

Modern C for C++ Peeps:

https://floooh.github.io/2019/09/27/modern-c-for-cpp-peeps.html

I find the article interesting not only for C++ "peeps", but for us greybeard C programmers as well, who learnt the language in the eighties. Remarkable sections in the document are:

- Use struct wrappers for strong typing (I've never done this, but it's interesting; accessing the components inside the structs may become a bit tedious, though).
- Initialization in C99 (I haven't used this to its full potential).
- Don’t be afraid to pass and return structs by value (as an old fart, I always pass pointers to structs, and this section reasons otherwise for small structs).
- Named optional arguments (or, as the author more accurately describes this, the "option bag").