In Flex I can specify a * as datatype.
What is it and how should I use it.
I’ve written a inArray() method that takes as argument something to search for and something to search in. The “something to search for” looks like a great candidate for the * datatype.
Should I not use it?
Thank you.
*indicates an untyped identifier. You’d use it when you can’t guarantee that the type of an object will conform to any specific class or interface definition.Whether
*is appropriate in your example depends on what operations you use in your search. If you just rely on common equality operations, you should be fine, and in fact it would probably be the best choice.