incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Francis Buhler <davidbuh...@gmail.com>
Subject Re: Code formatting for patch submissions
Date Mon, 27 Feb 2012 02:42:13 GMT
FlexFormatter has an option that will add the missing curly braces.

to enable: Flex Formatter > Actionscript > tweaks > pre-formatting options
> select "add always" or "add smart"

Missing Curly Braces bothers me to no end.


> One thing I'd argue changing is code like this:
>
> if (some condition)
>        a = 1;
> else
>        b =  2;
>
> While it's compact the missing braces can (and often do) cause bugs when
> the code is modified.
>
> Thanks,
> Justin
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message