[Swift-devel] the any type

Mihael Hategan hategan at mcs.anl.gov
Wed Apr 15 14:07:26 CDT 2015


Hi,

There is an "any" type in /K. I think it was initially meant to be used
for library functions that can take any argument, like trace(). However,
I discovered that it is also exposed to the script in that one can do
things like:

any[string] a = {"a": "str", b: 1};

I don't have a problem with that in general. There are places where such
heterogeneous arrays are useful. But I am not sure about the name "any".
Ideas?

Mihael




More information about the Swift-devel mailing list