dil*_*van 6 groovy destructuring
Groovy 是否具有像 Javascript 这样的多个赋值的对象解构:
let options = {
title: "Menu",
width: 100,
height: 200
};
let {title, width, height} = options;
alert(title); // Menu
alert(width); // 100
alert(height); // 200
Run Code Online (Sandbox Code Playgroud)
Groovy 没有 JavaScript 的对象解构...它只有基于索引的解构
https://groovy-lang.org/semantics.html#_object_destructuring_with_multiple_assignment