Topic
  • 1 reply
  • Latest Post - ‏2013-02-26T18:54:23Z by hnasgaard
SystemAdmin
SystemAdmin
1245 Posts

Pinned topic Best Practice : Using types to define tuple layouts

‏2013-02-26T17:39:18Z |
I'm new to coding Streams. Is it considered a best practice to define tuples in "type" statements, rather than within each operator? It seems more readable to me that way.
  • hnasgaard
    hnasgaard
    200 Posts

    Re: Best Practice : Using types to define tuple layouts

    ‏2013-02-26T18:54:23Z  
    You could consider defining tuple types in type statements as a "best practice". It makes sense when defining types, say, in a composite, that should be used with that composite. Also if you are going to reference the same type multiple times, you don't want to redefine it every time. Also it makes defining complex nested tuple types easier.