gpt4 book ai didi

oop - 我应该在类型定义中使用 this、self 还是其他东西作为 self 标识符?

转载 作者:行者123 更新时间:2023-12-05 00:42:41 26 4
gpt4 key购买 nike

我的猜测是“this”更像 C#,在 F# 中最好使用“self”。

是否有任何必需/首选的编码指南?

最佳答案

除了“this”、“self”和“x”,我还看到了“__”和“lowercaseenclosureclassname”。

关于oop - 我应该在类型定义中使用 this、self 还是其他东西作为 self 标识符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1793484/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com