elizarov
04/26/2017, 9:01 AMRegex("haba")
instead of ~r/haba/
is only slightly more verbose, but way more readable. The only potential issue that one can see here is performance, e.g. that the function is being invoked at run-time, but there’s a much less intrusive way to solve that: https://youtrack.jetbrains.com/issue/KT-14652bamdmux
04/26/2017, 9:58 AMr/reg/
would be cool syntaxis sugar (for me). But as I said in other thread I would be perfectly fine having const val regex = sigil_r("whatever","i")