News for hackers. Stuff that matters.
Re:Static typing will not save us from broken software by steveklabnik on Sunday October 23, 2016 @04:18PM (#12775224)
That function looks like this in Rust: https://doc.rust-lang.org/std/ops/trait.Index.html (it's heavily generic, it could be slightly less verbose if it didn't have to handle Sized)

The compiler will errr if x isn't indexable, or if it is but not by the type of a, in terms of your function's names.

There are no comments on this comment yet.