-
Notifications
You must be signed in to change notification settings - Fork 776
Lack of clarity for the prefix 'get' for global functions. #7285
Copy link
Copy link
Open
Labels
a.effective-dartRelates to the best practices explained in Effective DartRelates to the best practices explained in Effective Dartact.questionRelates to issues that writers need SME helpRelates to issues that writers need SME helpe2-daysCan complete in < 5 days of normal, not dedicated, workCan complete in < 5 days of normal, not dedicated, workfrom.page-issueReported in a reader-filed concernReported in a reader-filed concernp2-mediumNecessary but not urgent concern. Resolve when possible.Necessary but not urgent concern. Resolve when possible.
Metadata
Metadata
Assignees
Labels
a.effective-dartRelates to the best practices explained in Effective DartRelates to the best practices explained in Effective Dartact.questionRelates to issues that writers need SME helpRelates to issues that writers need SME helpe2-daysCan complete in < 5 days of normal, not dedicated, workCan complete in < 5 days of normal, not dedicated, workfrom.page-issueReported in a reader-filed concernReported in a reader-filed concernp2-mediumNecessary but not urgent concern. Resolve when possible.Necessary but not urgent concern. Resolve when possible.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Page URL
https://dart.dev/effective-dart/design
Page source
https://github.com/dart-lang/site-www/blob/main/src/content/effective-dart/design.md
Describe the problem
There are two rules that create room for interpretation:
If I have a global function (not method) that returns a value, is it recommended to give it prefix 'get':
Expected fix
It would be nice to see this case clarified in effective dart to help teams save time arguing about interpretation.
Additional context
No response
I would like to fix this problem.