4 ms·
I already know about this but if you use someone else's code in a library for example in Julia the library will most likely only work with 1-indexed array, in A
by renox 8y ago
I already know about this but if you use someone else's code in a library for example in Julia the library will most likely only work with 1-indexed array, in Ada it will work with any base index.
Default matters!
- deleted 8y ago[deleted]
- rrock 8y agoIt's straightforward to write library code in Julia that handles any type of index. If it doesn't, it is probably old code from before the time before offset arrays. Take a look at Tim's linked blog post.
- renox 8y agoIt is straightforward to create a language where a user can specify any type of index (like Ada), if you need to import a library everywhere to have the correct behaviour then this library should be a part of the language instead.