明确结构体的构造函数 #10
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
对于一个命名的结构体,例如
它其实有一个编译器生成的隐藏构造函数
A: Fn(<A, B>, <A, B>, And<A, B>)
,但是现在我们的代码里无法指明这个构造函数,必须要嵌套一层:是否可以考虑由编译器直接生成
And::constructor
之类的函数完成这一点?