3 ms·
And Swift also has "inout" parameters.
by jb1991 4y ago
And Swift also has "inout" parameters.
- stephencanon 4y agoBut not “out” params, sadly. It can return multiple values, so this doesn’t matter much for value types, but it would be nice to be able to specify that a pointer arg is an out-param sometimes and enforce that it is not read from while handling allocation in the caller.