Let me lay out a definition first.
Definition: A non-empty open connected subset of $\mathbb{C}$ is called a domain.
I am currently self-studying Complex Analysis and have been referring to multiple books. Right now, I am at the point of trying to understand the definition of holomorphic functions.
What got me confused is that in some books, they define holomorphic functions on a domain (cf. Lecture Notes by Ivan F. Wilde) while on some books, they define holomorphic functions on open subsets of $\mathbb{C}$ (cf. Stein-Shakarchi Complex Analysis, Priestley's Intro to Complex Analysis, Lang's Complex Analysis).
So, my question is, why is this so? Would there be major consequences from this slight difference of definition? Thanks in advance.
Every open set can be partitioned into at most countably many domains (the connected components of the open set). A function is holomorphic on an open set if and only if it is holomorphic on every connected component thereof (since being holomorphic is a local property). This basically tells you everything about the relationship: a holomorphic function on an open set is just a completely independent collection of holomorphic functions on domains. Otherwise said: if you understand everything about holomorphic functions domains, you immediately also know everything about open sets - and books using open sets as the default will explicitly say when they want connectivity.
You would need connectivity for the identity theorem. You wouldn't need it for any explicitly local theorems such as if you derived the Cauchy-Riemann equations from complex differentiability or noted the invariance of line integrals under homotopy of the curve. Sometimes you'll even want things to be simply connected, meaning that every curve is homotopic to the identity - for instance, for getting an antiderivative to a holomorphic function. There's a few flavors of these connectivity requirements - but it's not so meaningful which is used as the default.