Re:My Vision of D’s Future
by jordigh on Tuesday October 15, 2019 @02:52PM
(#21262248)
It's not the best idea to always unconditionally use .array because you might want to preserve the laziness of a Result type. By using .array you're saying you want all of the results into memory right now! Depending on what you're doing, you might not want that.
[ Parent
| on HN ]
I actually didn't know this! Very cool. I guess it's similar to calling .ToList() on IEnumerable<T> in C#.