Warn about implicit returns #708
Labels
closed due inactivity
The issue/PR was automatically closed due to inactivity.
language design
Any changes to the language, e.g. new features
stale
The issue/PR was marked as stale because it has been open for too long.
As recent events have shown, we need to make Solidity more difficult to be misused or used in ways that can cause bugs.
Granted the following example is contrived, but we really need to consider if the advantages of returning values implicitly by name is worth it.
This may be a valid example, and if this feature is really desired, it would still be helpful to explicitly have
return
somewhere.My first thought is just to deprecate and remove this feature.
If it's desired, maybe clearer syntax such as
[return winningProposal = p;]
is possible and can help.Before we optimize for say features that might save gas, I think we agree to focus first on safety.
The text was updated successfully, but these errors were encountered: