top | item 45425489 (no title) algorithmsRcool | 5 months ago Isn't Span<T> the exact same concept? discuss order hn newest titzer|5 months ago Conceptually they are almost identical, though Virgil has explicit source syntax for making a subrange. One important difference, according to [1] Span<T> can only live on the stack. There are no lifetime restrictions for Range<T> in Virgil.[1] https://learn.microsoft.com/en-us/archive/msdn-magazine/2018... achandlerwhite|5 months ago Memory<T> is the heap compatible version of Span<T> in C# for anyone curious.
titzer|5 months ago Conceptually they are almost identical, though Virgil has explicit source syntax for making a subrange. One important difference, according to [1] Span<T> can only live on the stack. There are no lifetime restrictions for Range<T> in Virgil.[1] https://learn.microsoft.com/en-us/archive/msdn-magazine/2018... achandlerwhite|5 months ago Memory<T> is the heap compatible version of Span<T> in C# for anyone curious.
achandlerwhite|5 months ago Memory<T> is the heap compatible version of Span<T> in C# for anyone curious.
titzer|5 months ago
[1] https://learn.microsoft.com/en-us/archive/msdn-magazine/2018...
achandlerwhite|5 months ago