
Oct. 8, 2021
5:41 a.m.
pt., 8 paź 2021 o 04:48 S Pradeep Kumar <gohanpra@gmail.com> napisał(a):
... Note that we considered and rejected using a full def-signature syntax like ```` (record: PurchaseRecord, permissions: List[AuthPermission], /) -> FormattedItem ```` because it would be more verbose for common cases and could lead to subtle bugs; more details in [3].
Did you considered full def-signature with optional argument names, so the common cases would look like ```` (:PurchaseRecord, :List[AuthPermission]) -> FormattedItem ```` Bare name signatures like '(record) -> FormattedItem' could be disallowed to prevent bugs.