[neomutt-devel] About C flavour (Was: Refactoring's cosmetics ?)

Pietro Cerutti gahr at gahr.ch
Thu Jan 26 15:42:35 CET 2017

On 2017-Jan-26, 15:20, toogley at mailbox.org wrote:
> > >  - single line `//` comments,
> > >  - stdbool/stdint, 
> > >  - variable and flexible arrays,
> > 
> > I'd say no to VLAs, but I won't stress on that..
> what is the reason for that?

The main reason is that - unless heap allocation - you have no way to
recover from a stack allocation failure. Also, their semantics is kind
of messy.. not having their size known at compile time means you can't
sizeof them like you do for normal arrays.

Plus, they became optional in C11.. 

Pietro Cerutti
gahr at gahr.ch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1020 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20170126/30457b36/attachment.sig>

More information about the neomutt-devel mailing list