I’ve noticed that a lot of people to use different field names when writing 
inner constructors, so that you see code like:

type Foo
        a::Int

        function Foo(alpha::Int)
                magic(alpha)
                new(alpha)
        end
end

Would this ever be necessary to avoid confusion about names? I’ve started 
reusing the exact field name and it seems to work fine. Am I going to run into 
a subtle bug?

 — John

Reply via email to