官术网_书友最值得收藏!

What does this mean for Go?

When using composition—particularly the unnamed variable form—to satisfy interfaces, LSP applies just as it would in object-oriented languages.

When implementing interfaces, we can use LSP's focus on consistent behavior as a way of detecting code smells related to incorrect abstractions.

主站蜘蛛池模板: 河北省| 贡山| 化州市| 东阳市| 漳州市| 舒兰市| 萨嘎县| 区。| 鄂托克前旗| 东山县| 黑山县| 朝阳区| 文安县| 措勤县| 隆化县| 龙游县| 黎川县| 石泉县| 湖口县| 贺州市| 广宁县| 乐平市| 台中县| 兴和县| 沈丘县| 泰州市| 新兴县| 平果县| 镇江市| 松滋市| 临汾市| 宝坻区| 高平市| 丁青县| 布尔津县| 彭州市| 定襄县| 蓝山县| 黄大仙区| 乌拉特前旗| 营山县|