remember
-
remember
cp in cpan means comprehensive perl -
A a1ba@suya.place shared this topic
-
remember
cp in cpan means comprehensive perl@a1ba Child Porn Archive Network -
@a1ba Child Porn Archive Network@a1ba Although could also be Comprehensive Porn Archive Network, but that's basically bittorrent.
-
@a1ba Although could also be Comprehensive Porn Archive Network, but that's basically bittorrent.
-
-
@lanodan or C
-
@lanodan or C
-
@lanodan or C
@a1ba@suya.place @lanodan@queer.hacktivis.me It's a good book.
-
@a1ba@suya.place @lanodan@queer.hacktivis.me It's a good book.
-
-
-
-
-
@a1ba@suya.place @allison@hidamari.apartments @affine@mitra.hollow.capital Yeah, I have
-DDEBUG -UNDEBUGin my cflags to avoid that nonsense.Also no asserts when it could be regular error handling instead.
-
-
@lanodan @SuperDicq @a1ba n3220 is now recommended for C23, first one post the release AFAICT
-
@a1ba@suya.place @allison@hidamari.apartments @affine@mitra.hollow.capital Yeah, I have
-DDEBUG -UNDEBUGin my cflags to avoid that nonsense.Also no asserts when it could be regular error handling instead.
-
-
@a1ba@suya.place @allison@hidamari.apartments @affine@mitra.hollow.capital @ska@social.treehouse.systems I find having the proper error handling to be better, specially that way there's less chances of having screwed the function return types / parameters which can then means refactoring headaches or worse in case of a library where you want to avoid ABI breaks.
Plus you can often just
if(oh_no) return -1;and call it a day. -
@a1ba@suya.place @allison@hidamari.apartments @affine@mitra.hollow.capital @ska@social.treehouse.systems I find having the proper error handling to be better, specially that way there's less chances of having screwed the function return types / parameters which can then means refactoring headaches or worse in case of a library where you want to avoid ABI breaks.
Plus you can often just
if(oh_no) return -1;and call it a day.@a1ba @affine @allison @ska Meanwhile one case where I use assert is to make sure there won't be nonsense from the compiler, like parts of code which should be unreachable.
Or things like poor man's bound checking.
And I often feel like assert should be banned from libraries, specially ones that aren't internal to a project.
