-
Notifications
You must be signed in to change notification settings - Fork 5
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
Rename member #691
Comments
For context, Very often, we'd write two functions, one for each struct, and the implementations would be identical, So we added the You're correct And maybe there are some places where we take a But for implementations that are shared between |
We should consider merging Field and Parameter into a single struct (Field). Then no need for this umbrella trait with an odd name. |
Just as an aside, having lots of types is actually very standard in Rust. Even those that are nearly identical to one another. Also, in my opinion, just comparing the structs isn't a good indicator of actual similarity. Looking through the code, I think this would be a net-zero change. Some things would get simpler, others more complicated.
|
I prefer to leave these types separated. It's more semantically cleaner. |
At the Slice2 encoding level, parameters are just like the fields of an anonymous struct that gets encoded into a request / response payload. The differences between struct fields and parameters are very small:
and that's it.
This is a bogus argument. The syntax is similar but the semantics is completely different. That's totally different for fields and parameters. |
slicec makes extensive use of the term 'member' that has no meaning in Slice. We need to rename all these members.
The correct terms are fields and parameters.
The text was updated successfully, but these errors were encountered: