View Single Post
Old 07-21-2016, 06:18 PM   #51
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,932
Karma: 6361444
Join Date: Nov 2009
Device: many
Plus you have no bounds checking in your loop and it may walk off the end and segfault.
And lambda functions do not make code easily readable or supportable no matter if it is the rage or not. So stick with simple WHITESPACE.contains() and increment and bounds check to make it clear what is going on. The python code does this for exactly this reason.

Last edited by KevinH; 07-21-2016 at 06:22 PM.
KevinH is offline   Reply With Quote