dibyendumajumdar / ravi

Ravi is a dialect of Lua, featuring limited optional static typing, JIT and AOT compilers
http://ravilang.github.io/
Other
1.17k stars 63 forks source link

Add support for byte arrays #113

Open dibyendumajumdar opened 7 years ago

dibyendumajumdar commented 7 years ago

Ravi has integer arrays and number arrays. In practice integer arrays are almost never needed. However if we had a byte array concept then that could be used to manipulate buffers using bitwise ops.

bluebear94 commented 7 years ago

Don't strings already fulfill this role?

dibyendumajumdar commented 7 years ago

not really as it is not possible to access individual elements in a string efficiently