Less goto in ltrimWhitespace and rtrimWhitespace
Summary: [Folly] Less `goto` in `ltrimWhitespace` and `rtrimWhitespace`. The generated machine code remains unchanged for `g++ -O3` builds. Generally, prefer to use `goto` in cases which cannot, or which can only arduously, be accomplished without it. In other words, reserve `goto` to cases where `goto` is necessary, rather than to cases where it saves one line. Closes #732. Reviewed By: andrewjcg Differential Revision: D7027269 fbshipit-source-id: 91a4c5dba0e4c13dc727393799edc9b596cdb8b9
Showing
Please register or sign in to comment