If it's a private establishment, such as an upscale restaurant, club, or country club, I personally think it's fine. If government is forcing them to ensure a specific dress code, that's communistic. This also goes toward private schools who wish to impose a specific uniform or dress code.