Is there a syntax for passing composite keys, i.e. lists and objects,
like the below example, or is that by-design?
> obj = {[1, 2]: 3};
SyntaxError: Unexpected token [
The second example works fine, it's not bad but I'd like to know if there is an alternative way.
> obj = {};
> obj[[1, 2]] = 3;
3
> [1, 2] in obj;
> true