[vlc-devel] [PATCH 06/21] input/stream: stream-fragments: add vlc_stream_CreateFragmentMRL

Denis Charmet typx at dinauz.org
Tue Aug 2 14:07:11 CEST 2016


On 2016-08-01 18:07, RĂ©mi Denis-Courmont wrote:
> In C/C++ code, within a unique process and program, you must trust the 
> caller.
> Your likings does not matter here; that's just how the programming 
> model of
> those languages is. Otherwise. you will get undefined behaviour, no 
> matter how
> many silly "defensive programming" checks you add.
> 
> Defensive programming does three things: make the code more confusing,
> incentivise cargo cult, and make debugging harder by concealing bugs. 
> We have
> had a lot of problems with that nonsense in the past.

Point taken.

Regards,
-- 
Denis Charmet - TypX
Le mauvais esprit est un art de vivre


More information about the vlc-devel mailing list