This is exactly what I think when I hear "worse is better". Some software just needs to be right the first time.
Please share any examples you know of on how to do this!
To restrict in the manner that the person above described would require some kind of const parameter in the type, no? The type would need to be parameterized over the `&str` to ensure that slices could only be taken…
This is exactly what I think when I hear "worse is better". Some software just needs to be right the first time.
Please share any examples you know of on how to do this!
To restrict in the manner that the person above described would require some kind of const parameter in the type, no? The type would need to be parameterized over the `&str` to ensure that slices could only be taken…