On 20.02.2018 00:53, Timothee Cour wrote:
great! maybe worth adding to DIP? (even though `unpack` would be (IIUC) a pure library solution on top of this DIP) ...
Yes. I'll add it to the use cases.
and that would work too I guess? ``` string[4] args=...; auto (infile, colname, repl, outfile) = args.unpack; ```
Sure! Also, this: void main(string[] args){ enforce(args.length==5, "Invalid args"); auto (infile, colname, repl, outfile) = args[1..5].unpack; // ... }