-
Notifications
You must be signed in to change notification settings - Fork 267
feat: relax owned String requirements #1404
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1404 +/- ##
==========================================
- Coverage 80.62% 80.52% -0.11%
==========================================
Files 107 107
Lines 15583 15591 +8
==========================================
- Hits 12564 12554 -10
- Misses 3019 3037 +18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The only issue that I can envision with that is that allowing static polymorphism, users potentially enlarge their binary by creating method duplicates if they use several variations. |
akorchyn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@race-of-sloths score 3 |
|
@mitinarseny Thank you for your contribution! Your pull request is now a part of the Race of Sloths! Current status: executed
Your contribution is much appreciated with a final score of 3! @akorchyn received 25 Sloth Points for reviewing and scoring this pull request. What is the Race of SlothsRace of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow For contributors:
For maintainers:
Feel free to check our website for additional details! Bot commands
|
@akorchyn What if hint the compiler and add |
|
/compare |
|
@mitinarseny I don't think that it's a big deal for now. I just saw a trend in a few latest Pull Requests with impl X in functions, and just wanted to raise that there is a trade-off in doing that |
|
@akorchyn Sure, but if the developer wants the contract to be optimized in size, then he better switch to PS: the developer can still optimize out all template instantiations by using the same argument type everywhere. |
Contract size reportSizes are given in bytes.
|
This PR relaxes owned
Strings requirements and lets you pass&stras function_call name(s), too: