Rule of Least Surprise: In interface design, always do the least surprising thing.
译:最小惊奇准则:在接口设计中,总是做最少的令人惊讶的事儿,即不要画蛇添足。
Rule of least Surprise: in interface design, always do the least surprising thing.
最少的惊讶原则:在界面设计中,少做令人惊讶的设计。
This is a rare case of Groovy violating the Rule of Least Surprise, but because getting elements out of a map is far more common than using reflection, it is an exception that I can live with.
这是 Groovy 比较罕见的打破 “最少意外原则” 的情况,但是由于从 map 获取元素要比使用反射更加常见,因此我可以接受这一例外。
应用推荐