From the Julia language web page:
Conceptually, a string is a partial function from indices to characters: for some index values, no character value is returned, and instead an exception is thrown.
Nice!*
Regards
Rick
* Julia uses UTF-8, which would kinda force this approach.