为什么Class?
当 no args 构造函数可能出错时表单无效,而 with args 表单有效?可能是尚未考虑的错误或粗糙边缘吗?
class A
new create(x : I32) ? =>
if (x % 2) == 0 then
error
end
class B
new create() ? =>
error
actor Main
new create(env: Env) =>
try
let x = A(1)? // legal
let y = B.create()? // why not `B?`? `B()?` seems to expand to `create().apply()?`
else
env.out.print("exception")
end