I almost never use accessors for array elements, but recently I did and I found something I didn't expect:
The index inputs on the accessor VIs are set to recommended, so you might not notice that you didn't wire them in. I expected them to be required.
I checked and found out that this is a design decision - it was done that way because that's how the Index Array and Replace Array Subset primitives behave - they don't require you to wire in an index.
However, the argument could be made that those primitives behave that way because they can be expanded (although they apparently behaved the same even before the expansion feature was added).
In addition, the In Place Element Structure does have the index input set as required, so LV already has a counter-example built-in.
Since it's basically a choice between two valid scenarios, NI needs user input to decide, so that's where your votes come in.
Personally, I think it's less important what other features in LV do and more important to allow people to safely and conveniently use my classes. I would expect that in most cases I would want the inputs to be required, so that's the idea here - Change the index inputs on LVOOP array element accessors to be required by default:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.