I think this has been discussed, but I sometimes hear people say that switches may not be located within reach of showers or tubs. I can't find any NEC issue, other than 404.4 which does not apply.

Also, I have had to install bathroom receptacles in new homes that, due the vanity length and bathroom layout, are only inches away from a soaking tub deck.

Other than design issues, I see no violation.

Comments please?