3 ms·
Will swift not get the `impl trait` that Rust is slowly churning out?
by eptcyka 9y ago
Will swift not get the `impl trait` that Rust is slowly churning out?
- mikeash 9y agoI believe it's coming eventually, but for the moment we need workarounds like this.
- masklinn 9y agoIt looks like trait objects could also work for the essay, e.g. the original examples could be achieved as: fn f(seq: &mut Iterator<Item=&u8>) although due to object-safety constraints they may not be suitable for every case.