I think I remember seeing somewhere that you get points deducted for using a general string constant that happens to be empty as opposed to an empty string constant. This might be mentioned in the style guide.
But I just noticed that you can't put an empty string constant in a cluster constant! Only a string constant that is empty.
So if I needed to create a cluster constant of empty strings, would I lose style points for using a string constant with nothing in it rather than an empty string constant? If so, is there a way to do this without losing style points?
Solved! Go to Solution.
The empty string constant isn't really a constant. Its really a vi similar to this:
saved without its block diagram. That is the reason it won't go in a cluster (and how would you change the string value?)
If you need to make a cluster constant, other things are much more important:
This often simplifies the code and is automatically self-documenting, especially if you later always use (un)bundle by name.
That is the reason it won't go in a cluster (and how would you change the string value?)
This explanation is incorrect. It is true that the space constant is a VI (for no good reason, really), but primitives such as , EOL, Tab, -Inf, Pi, Ln2, etc. are NOT subVIs but still cannot go into a cluster constant container.
There reason is more general. Clusters cannot contain constants. Period.
(They can contains other stuff such a free labels and decorations, though. )
( I guess disallowing constants was a very early design decision and probably not a bad one. Still, constant could be allowed in principle, because they just define a datatype and initial value)