[SR-11885] Allow operator functions to have extra arguments with default values #54301
Labels
compiler
The Swift compiler itself
declarations
Feature: declarations
feature
A feature request or implementation
func
Feature → declarations: Functions
good first issue
Good for newcomers
improvement
operators
Feature: operators
swift evolution proposal needed
Flag → feature: A feature that warrants a Swift evolution proposal
Additional Detail from JIRA
md5: 210d53f6b32e8240f74a2e7677a3c698
Issue Description:
It might make sense to allow operators to have default arguments, and for those defaults to not count towards the overall arity of the operator. For example, a custom operator `<-` could have `#line` and `#file` defaults in a debug configuration. It could then check some extra invariants in a particular configuration, or do some error reporting, etc.
This change requires an evolution proposal.
The text was updated successfully, but these errors were encountered: