In the “Extending SQL” chapter I see both of these forms are mentioned.
But can’t find info about when to use which one.