Combining @pure and @inline

If I use @pure, would @inline be superfluous?

If not, in which order should they be used? @pure @inline or @inline @pure

My understanding is that @pure says your function has no side-effects (e.g. printing or writing a file) and is completely deterministic based on the input parameters. But @inline says that the code of this function is to be inserted into the machine generated code instead of “calling” it by its definition whose machine codes are stored elsewhere. The two are orthogonal concepts so I would guess that the two shouldn’t matter whichever order you put them; at least I can’t think of a reason for that to be the case.

Best way is to test it out using some small examples.