There’s a multitude of problems defined on a continuous 2D domain, where it makes sense do define a type
immutable Point{T<:Number}
x::T
y::T
end
It’s common, yet simple, enough to be the example on parametric types in the manual. Yet I can’t find any type like this in Base.
Of course, since the implementation is trivial it’s easy to just carry one with the project, but I think it would make sense to include such a type in Base so that all packages can use the same 2D point type, thereby making it much easier to communicate these points between applications.
Is there a reason this has been excluded, or is it just that no-one has tried to include it yet? What are the opinions on including such a type? Are there others, that might provide similar benefits?
// Tomas