I often find myself running into issues in scripts with "n items()". And I often see this error: "N Items() argument must be a list"
In one script, due to the robustness of my data, what I feed into nitems can sometimes be a matrix, number, or character. Aka: variable = [5], variable = 5; variable = "05"; variable ={5}; Not to go too much into detail, it would be really nice in this case if "n items" was fed a character value, aka, n items("05"), it would spit out 1, if it got a matrix it would spit out nrows, ect.
The positive is that JSL would never bug out if an inappropriate data item was fed to it since it would make a soft transformation to your data. This would greatly reduce the amount of code needed to make a script robust to lots of different data. The down side is it could lead to lazy programming making it hard to find mistakes. This could lead to problems: for example, fed a matrix and wanted ncols, not nrows; or your string was "05, 05" which you should have parsed first, ect.
What does the community think? If "n items" was more robust, would it be a blessing or a curse?