Pros and cons of co sleeping?

Bassinets that attach to the bed? Pros and cons to those.