Skip to content

Commit

Permalink
Added another alternative from kballard
Browse files Browse the repository at this point in the history
  • Loading branch information
aturon committed Sep 15, 2014
1 parent 01e9ad9 commit 2e00888
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions active/0000-unsafe-api-location.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ There are a few alternatives:
some_string.slice_unchecked(start, end)
```

* Another suggestion by @kballard is to keep the basic structure of `raw`
submodules, but use associated types to improve the ergonomics. Details (and
discussions of pros/cons) are in
[this comment](https://github.com/rust-lang/rfcs/pull/240/files#r17572875).

* Use `raw` submodules to group together *all* manipulation of low-level
representations. No module in `std` currently does this; existing modules
provide some free functions in `raw`, and some unsafe methods, without a clear
Expand Down

0 comments on commit 2e00888

Please sign in to comment.