This is a great tenet of living small. Whether it's via a Murphy bed, a loft, a sofabed mechanism, or rolled-up-and-stashed bedding Japanese-style, nothing maximizes floor area for the day like 'first, hide the bed'.
Here's another neat way to do it - slide it under the floor.