Best Shoes for Sailing

What are the best shoes for sailing? Should you buy a multi-use shoe that will grip the boat’s surface one afternoon and take you on a mountain hike the next morning?