useful design's picture

Alastair (@usefuldesign)

Groups

  • Vuo Founder

Compositions

4 years ago
useful design's picture
Alastair commented on alexmitchellmus's Feature Request, “Lists within lists

Another question for @teamvuo / Jaymie, will Lists of List automatically allow Lists of Lists of Lists, simply because it's a recursive approach to lists, or would that require extra coding? I note that recursion is included in alexmitchellmus's FR, so assuming it's included unless we hear otherwise.

useful design's picture
Alastair commented on alexmitchellmus's Feature Request, “Lists within lists

Sorry sinemod I simplified the question, so your response doesn't make sense now.

What I was talking about in original version of the question is that in many programming languages there are ways to make heterogeneous definitions of types, data-types or classes.

In Haskell for example it's trivial to create a new type which may be a combination of more elementary types, say a pair comprising of a string and an integer number value

e.g. ("pineapple", 5)

nothing special is required to make a list of instances of that type

e.g. [ ("pineapple", 5), ("apples", 1), ("oranges", 0), …]

the only way to create a new datatype in Vuo is to do so by making a node or nodes in C (I assume). Would Lists of Lists benefit from some nodes to create heterogeneous datatypes that can be used in lists?

useful design's picture
Alastair commented on alexmitchellmus's Feature Request, “Lists within lists

I have a question for @teamvuo/Jaymie, lists in Vuo currently have to be homogenous (AFAIK)? So this will apply to lists of lists too right, all elements in any list of lists will be of the same (predefined elsewhere) datatype?

Most XML files have heterogeneous datatypes in them (often serialised as strings), so will need to be parsed outside of any list of lists to get say, real numbers from the data right?

useful design's picture
Alastair commented on keithlang's Feature Request, “Case Switch Node

Thanks for the comments, Jaymie. Would you be able to shed any light on the speculative comments in this thread about nodes dynamically setting input ports? Changing the names, adding additional port, removing ports where the input variable has been removed from the expression or C/GLSL code?

Is that functionality a show-stopper ATM for nodes that would need it, or is it a relatively simple change to the Vuo Editor to do something like that?

Pages