I'm reading Griffiths and he has this section where he states that $|\hat{Q}f\rangle$ is mathematical nonsense and that really we should write $\hat{Q}|f\rangle$, where the latter makes more sense to me, as it states (to my knowledge) that we have some operator acting on a vector ($Ax$ in "standard" linear algebra), but I cannot express what $|\hat{Q}f\rangle$ would be. By playing around a little I came to think of $|\hat{Q}f\rangle$ as $(Ax)$, meaning a new vector on which the operator has acted upon whilst $\hat{Q}|f\rangle$ is an expression where the operator "has yet to act". But of course, this is not very logical since as Griffith states, $|\hat{Q}f\rangle$ is mathematical nonsense (although I would claim that a great deal of what makes this notation good and intuitive is the distribution of operators inside the bra and ket.)
Furthermore, he goes on to justify that the expression $\langle\hat{Q}f|$ is valid, which to me seems increadibly unreasonable if $|\hat{Q}f\rangle$ is not valid, as I thought the entire point is that distributing an operator inside the bra and kets is essentially nonsensical although everyone uses it all the time. I played the thought around with to justify $\langle \hat{Q}f|$ is that strictly speaking, this is not really a vector, but something more closely resembling an operator ($\langle f|$ is a linear functional and $\hat{Q}$ an operator. I'm not sure of the terminology, but it is certainly not a vector), and thus we distinguish it from a vector by distributing the operator inside of the bra.
After doing further research like on this thread: Difficulties with bra-ket notation where it is claimed that $\langle \psi|A|\psi\rangle =\langle\psi|A\psi\rangle$, which again feels weird after having read Griffiths.
Lastly I came across this MIT lecture https://ocw.mit.edu/courses/8-05-quantum-physics-ii-fall-2013/resources/lecture-9-diracs-bra-and-ket-notation/ where at $58:30$ the lecturer defines $\langle\psi|A|\psi\rangle=\langle\psi,A\psi\rangle$ where the right hand side is in "inner product notation" and the right hand side is supposedly in "bra-ket" notation. This appears logical to me, and the natural conclusion is that when we write $\langle \psi|A \psi \rangle$, we are actually using "inner product notation" as opposed to bra ket notation where we exchanged the "$|$" with ",".
My question boils down to (I) How can we justify $\langle\hat{Q}f|$ as being "not mathematically nonsensical", (II) Should we really think of the bra-ket notation and inner product notation as separate things to justify the distribution of operators? (III) In general, how can we justify the distribution of operators inside of bra and kets if this is mathematical nonsense (but is so widely used!)?
Apologies for the thread being all over the place, just wanted to show my thought/research process.
Thank you!