-
Notifications
You must be signed in to change notification settings - Fork 231
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
Allow the generation of Swift code that follows the normal case conventions. #2276
Comments
Also related to #2262. IMO those guidelines are odd, subjective and depend so much on context - you mention Which makes we wonder if a list even makes sense - it might not be clear exactly when this list is supposed to be consulted (and that may itself be subjective). So why not just have #1426 (and maybe companions for, say argument names etc)? It's one less level of indirection which might cause a small amount of duplication (eg, you'd need to list both |
I'm not sure I would agree here given skimming through the documentation for
Agreed, this should be defined by each project.
I don't think so, the conventions are applied everywhere e.g.
#1426 would definitely help, but would have the following drawbacks:
|
Semi-related to #1426, it would be great if UniFFI could generate Swift function/variable/argument/type names that conform to the “Follow case conventions” point in the Swift API Design Guidelines:
A couple of examples:
avatar_url
avatarUrl
avatarURL
raw_json_string
rawJsonString
rawJSONString
Some obvious thoughts that came out of an initial conversation:
uniffi.toml
as whilst some conversions likeURL
andJSON
aren't debatable, other such asID
may raise discussion as to whether or not they count (and this clearly isn't UniFFI's problem to deal with).The text was updated successfully, but these errors were encountered: