3 ms·
As Steve mentioned, it was mostly for ffi. There's also a few places where I'm doing my own bounds checking in order to provide nicer error messages. After doin
by jwilm 10y ago
As Steve mentioned, it was mostly for ffi. There's also a few places where I'm doing my own bounds checking in order to provide nicer error messages. After doing the bounds checking, doing an index operation without the standard library's bounds checking requires unsafe.
- steveklabnik 10y agoCouldn't you use get instead of [] for this? Maybe I'll look into it and send a PR :)
- jwilm 10y agoThat seems completely reasonable. Not sure why I didn't consider it. PRs welcome :D
- steveklabnik 10y agoI figured out why: because there are two of them, it's a little awkward... I might have a PR for you, we'll see :)