D3r1ck01 added a comment. |
@Framawiki, if it's per this, https://gerrit.wikimedia.org/r/c/pywikibot/core/+/470627, then I'll say regex solutions become really confusing if they're trying to solve a complex problem hence making it difficult for one to understand a code base if we have many of them. Regex are good for solving parsing problems and somewhat fast as well but indexing seems generally easier to understand no matter how complex the problem is compared to regex and fast too.
But in this case that we're just checking for brackets (pretty straight forward), it's a pretty simpler problem and I think any solution here (regex or indexing) can work well and will not cause so much trouble. But honestly, for future proofing of code and scalability, I'll go for the index approach but let's hear what others have to say :)
Cc: D3r1ck01, Liuxinyu970226, revi, jayvdb, JAnD, Framawiki, matej_suchanek, Xqt, Aklapper, pywikibot-bugs-list, Bugreporter, Wenyi, Kieubinhtb, Wonnral, Asad_Ali_Palijo, Lahi, Soteriaspace, RazeSoldier, Jayprakash12345, JakeTheDeveloper, Tbscho, MayS, Mdupont, JJMC89, TerraCodes, Avicennasis, MuhammadShuaib, SimmeD, mys_721tx, Ricordisamoa, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs