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
RFC: Not so twisted snakes. #586
Conversation
IMHO very good idea, even if it produces big changes. cc @GuillaumeGomez, @sdroege and @antoyo |
Seems good to me but if we change this let's please follow what is done in C a bit closer. It's |
In this case, some further ideas:
Version 1 is what was proposed first, version 2 is some further refinement of |
Do we have other examples of two uppercase characters in a row, other than |
In trailing position: SoupCookieJarDB |
That's |
I like the idea and I agree with @sdroege. |
Improve to_snake implementation. For example: Type name | Old module name | New module name -------------|-----------------|---------------- DBusMessage | d_bus_message | dbus_message FileIOStream | file_i_o_stream | file_io_stream IMContext | i_m_context | im_context IOStream | i_o_stream | io_stream URIHandler | u_r_i_handler | uri_handler UnixFDList | unix_f_d_list | unix_fd_list Also remove dependency on case crate now that it is no longer needed.
I pushed updated implementation. It includes some additional test cases that For the record, new comparison table:
|
👍 |
Looks good to me 👍 |
Let merge then. |
I would prefer if we could get my glib/gio PRs merged before moving around all the files. The merge conflicts will be annoying to solve :) |
Fine by me. :) |
Affected crates: gtk, gio, gdk |
RFC: Not so twisted snakes.
Improve to_snake implementation. For example:
Also remove dependency on case crate now that it is no longer needed.