vlang / v

Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.5k stars 2.15k forks source link

builtin: improve camel_to_snake #21691

Closed ttytm closed 1 week ago

ttytm commented 1 week ago

The PR improves the performance of the method by removing the i > 0 and i > 1 checks from the loop.

kbkpbot commented 6 days ago

'JVM_PUBLIC_ACC'.camel_to_snake() => 'j_vm_public_acc'

I do think it is better 'jvm_public_acc'