Skip to content

Commit f9b06b7

Browse files
committed
Clarify some Alternatives and Future Directions
1 parent 0aab19d commit f9b06b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

proposals/NNNN-lifetime-dependency.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ func f(arg1: Array<Int>) -> BufferReference<Int> dependsOn(arg1)
387387

388388
We propose above using the existing `borrow`/`mutate`/`consume`/`copy` keywords, since we feel the new behaviors have a substantial similarity to how similar keywords are used elsewhere in the language.
389389

390+
We also considered `borrowing`/`mutating`/`consuming`/`copying` but felt that the semantic differences merited using a different form of these words.
391+
390392
Other alternatives considered include:
391393

392394
```
@@ -424,7 +426,7 @@ Requiring an explicit mutation specification seems to us to improve readability,
424426
#### Lifetime Dependencies for Computed Properties
425427

426428
It might be useful to allow lifetime dependencies between `self` and the value returned by a computed property.
427-
There is some ambiguity here, since resilience hides the distinction between a computed and stored property, and it’s not clear that there is any use for lifetime dependencies when returning stored properties.
429+
There is some ambiguity here, since resilience hides the distinction between a computed and stored property.
428430
In particular, the resilience concern might prevent us from inferring lifetime dependencies for properties across module boundaries.
429431
The notation for an explicit lifetime dependency on a property might look like the following:
430432

0 commit comments

Comments
 (0)