In theory the planned "modify" can handle this, but that would require inserting a copy of the 'self' value and hoping the compiler will optimize it out (because 'modify' expects exclusive access).https://forums.swift.org/t/modify-accessors/31872 …
-
-
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
why did you leave it, if you don’t mind my asking?
-
Just self-imposed break after leaving Apple. Wanted to make sure I didn’t just keep doing the same old things on autopilot.
- Još 2 druga odgovora
Novi razgovor -
-
-
This was the first ever thing that I posted to Swift Evolution! Apparently there was some earlier discussion about “protocol forwarding” which derailed this whole discussion then
-
Oh that’s hilarious, since that was probably me doing the derailing. Forgive me; I had not yet seen the true use of such a thing!
- Još 1 odgovor
Novi razgovor -
-
-
Add ~3 features to enhance property wrappers and you could write anything like this.
- Još 1 odgovor
Novi razgovor -
-
-
I would rather write this in some very sugared way which also restricts the forward to a single expression which can be checked for mutability.
-
Having a statement block and a yield suggests it allows arbitrary code, which I don’t think is a good idea if we want to compile this “both ways”.
- Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.