Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider: Basing internals on regex operations #9

Open
pykong opened this issue Mar 11, 2018 · 0 comments
Open

Consider: Basing internals on regex operations #9

pykong opened this issue Mar 11, 2018 · 0 comments

Comments

@pykong
Copy link
Collaborator

pykong commented Mar 11, 2018

The current implementation of the string conversion logic does not strike me as optimal.

Albeit it is working, I wonder whether using an approach to detect string case, acronyms and segmenting into substrings, as well as the final reassembling of those, is the most elegant approach. Likely basing these types of operations on regular expression may provide a much more succinct code.

On starting point:
https://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-snake-case

This idea is to be explored.

@pykong pykong changed the title Consider basing internals on regex Consider basing internals on regex operations Mar 11, 2018
@pykong pykong changed the title Consider basing internals on regex operations Consider: Basing internals on regex operations Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant