This subject, switch/if else, reminded me what I read recently on the
Stroustrup book.
1) The fact that "switch allows a better quality machine code".
2) an enumeration used with a switch allows a compiler to detect a case
which has be forgotten.

Now, I'm not a senior C++ dev at all, just a beginner who tries to improve
his knowledge so ... :-)

Julien.

--
View this message in context: 
http://nabble.documentfoundation.org/PATCH-core-vcl-source-window-splitwin-cxx-2047-core-vcl-source-window-splitwin-cxx-2045-style-Found--tp3748733p3756391.html
Sent from the Dev mailing list archive at Nabble.com.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to