I want to work through the “Ray Tracer Challenge” book whilst learning julia.
To do so I’d like to achieve the following:
- have a MyTuple type that acts exactly as regular tuples do
- be able to redefine operators for MyTuple as needed, i.e. have Base.(==)(a::MyTuple, b::MyTuple) that acts a little different from regular == as motivated by the book
In other words, unless I define specialized operators and methods for MyTuple, I want all built-in operators and methods for Tuple to be used for MyTuple.
How would you achieve that in julia?