Sylvain Patenaude
11/21/2019, 4:19 PMarray of strings or a collection of strings? Potential consumers (other than Koltin itself) could be Java, Swift, Objective-C, React Native, Xamarin, etc.Kris Wong
11/21/2019, 4:21 PMKris Wong
11/21/2019, 4:22 PMstreetsofboston
11/21/2019, 4:41 PMKris Wong
11/21/2019, 4:43 PMSylvain Patenaude
11/21/2019, 4:46 PMGuid type). For now I don't know all the potential usages, but I guess that would possibly include:
• Iterating through them to convert them in true GUID types in the consumer programming language
• Iterating through them to combine them with another bunch of UUIDs
So consumers shouldn't access them by index I think.Sylvain Patenaude
11/21/2019, 4:53 PMSylvain Patenaude
11/21/2019, 4:57 PMGuid type have a constructor that builds a Guid from a valid string.streetsofboston
11/21/2019, 5:12 PMCollection<String> (or Collection<Guid> if that is possible) based on your use-case (no need to access them by index).
If you want to make sure that the Strings and Guids are unique, and convey that to your SDK consumer, use Set<String> instead.Sylvain Patenaude
11/21/2019, 5:39 PMSet<String> would be an option. In the end, I don't think the specific type of "collection" (Array, Collection, Set, List) I will use in Kotlin will matter that much for my SDK.