You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/witnesses/discussion.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,12 +53,12 @@ Several alternatives to the proposed syntax changes for implicit parameters were
53
53
3. The design presented here, but with `implicit` instead of `witness` as the modifier for
54
54
parameters. This is closer to the status quo, but migration presents problems: At what point will an `implicit` modifier stop having the old meaning and acquire the new one? Using `witness` instead of `implicit` solves that problem because old and new styles can coexist and it is always clear which is which.
55
55
4. Don't split the meanings of implicitly passed parameters and witness parameters. Use prefix ‘.’ as a syntax
56
-
for both meanings together. This is more concise and relieves the programmer from needing to choose
56
+
for both meanings together. This is more concise and relieves the programmer from having to choose
57
57
which combination of functionality is desired. On the other hand, this does not support some
58
58
use patterns such as MacWire style dependency injection. Also, the prefix ‘.’ syntax is maybe
59
59
a bit too inconspicuous at the parameter definition site, even though it works very well at the
60
60
function application site.
61
61
5. As in 4., but using `witness` or `implicit` as the syntax that marks an implicitly passed witness parameter.
62
62
This breaks the correspondence between function abstraction and application syntax.
63
63
64
-
Once we have high-level witness definitions and witness parameters it's a small step to convert most the remaining uses of `implicit` to `witness` as a modifier. There are no hard technical reasons for doing so, but it looks more consistent with the other changes.
64
+
Once we have high-level witness definitions and witness parameters it's a small step to convert most the remaining uses of `implicit` to `witness` as a modifier. There are no stringent technical reasons for doing so, but it looks more consistent with the other changes.
0 commit comments