Replies: 3 comments 2 replies
|
I've been busy of late and am only seeing this a month+ later, but I agree that having different structures/types using different indexing is incongruous! Just to be clear, by I like the |
|
While poking at something today I ran into the index/range 0/1 difference and it definitely took me by surprise! |
|
strong +1 for starting at 0 |
Uh oh!
There was an error while loading. Please reload this page.
When writing a document on working with arrays, I realized just how inconsistent the rules were about where indexes start from:
https://dev.murex.rocks/user-guide/murex-arrays.html
It's all a bit confusing and inconsistent. I'm thinking from version v7.0, I'll bring everything in line.
I can do this by having a feature flag:
runmode version 7.0, if that's included in a module or script, then the code will conform to the new standard. If it's not included then code will respect the current design albeit with a log line written to something like:...so that people can review and update any old code.
As an aside, I'm thinking this
runmode version ...concept and logging could be a good way to bring in changes gracefully. ie allow legacy code to continue to work but allow improvement to the shell to proceed unencumbered.I'd be interested in peoples thoughts about this.
All reactions