Description
lists allow implicit ctors on enforce type coercion with the 'as' keyword
[100,200] as Dimension
maps are used for named parameters in ctors like
new Dimension(x:100, y:200)
just as a matter of completeness it would be logical to also provide
[x:100, y:200] as Dimension
Test:
assert new Dimension(x:100, y:200) == [x:100, y:200] as Dimension