the invention provides biocompatible resorbable polymers , comprising monomer units having formula , formula , formula or formula . the polymers degrade over time when implanted in the body , and are useful as components of implantable medical devices .