Hi there! I was reading this <http://docs.julialang.org/en/release-0.4/manual/constructors/#inner-constructor-methods> and trying the code, which I saved into a file called test.jl:
type OrderedPair x::Real y::Real OrderedPair(x,y) = x > y ? error("out of order") : new(x,y) end If I use lintfile("test.jl") I get this: ConstrTest.jl:5 E611 : constructor doesn't seem to return the constructed object I am implementing a similar constructor for a project of mine and I was wondering whether, in general, the use of error() in the constructor is good practice or if I should prefer other ways to solve the problem.