Can I add a plea for allowing indexing with integers that are represented by a floating point type
Following the principle of 'minimum surprise': If I have an integer just that happens to be represented via a floating point type I would still like to be able to use it as an integer. After all we are happy with the idea of allowing mathematical operations between integer and float types via automatic promotion of the integer. That is, we are not required to cast the integer to a float in order to multiply the two. Indexing with integer values that are represented by floats would seem an appropriate place for automatic demotion. Please do not make me write a[round(Int, 1.0)] ! As a long time Matlab user who is attempting to reform himself I confess to having some mixed feelings about Julia. Much of the time I find Julia very elegant and I find coding flows nicely but there are also times when I find Julia to be excessively finicky and a generator of too much 'surprise'. Indeed, sometimes I feel as if I might as well be coding in C. I am hoping much of this will go as I learn the language better. Still, let me say Julia is an impressive language and I greatly appreciate the work of the developers. I am looking forward to its future development. Cheers Peter
