JuliaLang/julia — Issue #250: should default constructors use field types as their argument types?
Author: JeffBezanson
Created: 2011-11-02 05:45:48+00:00
State: open
Labels: speculative

Currently the default constructor for:

```
type Foo
x::A
y::B
end
```

will have the signature `Foo(Any,Any)`, and whatever you pass will be converted (as with any field assignment). Maybe we should change this to `Foo(A,B)` to make it harder to make unintended objects.