Silk.NETS
Silk.NET3y ago
Aqua

hmm that's where i disagree one of the big benefits of C# is that it *has* overloads sure you can ha

hmm that's where i disagree
one of the big benefits of C# is that it has overloads
sure you can have too many of them
but if you only have a few they can work very well
a pointer overload and an array overload
maybe a span
i just feel like this Ptr<T> stuff may be a bit hard to understand, certainly i'm looking at this and wondering what exactly this is supposed to mean
i feel like for most users, they will only ever want safe overloads that take an array/whatever else, instead of a Ptr<T> struct that may leave (especially to beginners) some users scratching their heads
and for those that want pointer overloads, they are available as well
Was this page helpful?