Right now, anonymous struct types can be inferred doing:
define x = {a: 0, b: "value"}
But there is currently no way to explicitly define it, so they can't be returned from functions without using an actual declared struct such as:
struct MyStruct
{
public Number a;
public String b;
}
Which is bulky in scenarios where it is not used much.
Right now, anonymous struct types can be inferred doing:
define x = {a: 0, b: "value"}
But there is currently no way to explicitly define it, so they can't be returned from functions without using an actual declared struct such as:Which is bulky in scenarios where it is not used much.