News for hackers. Stuff that matters.
Re:Making Rust a Better Fit for Cheri and Other Platforms by Ar-Curunir on Thursday April 14, 2022 @09:51AM (#31026992)
> _ it even lets you declare an array whose index is some enumerated type._

You can do this in Rust also: make a custom newtype wrapper for your array, and impl Index<CustomEnum> for the wrapped array.

There are no comments on this comment yet.