Sidewalks are usually dangerous because they usually a lot of intersections with driveways and cross streets, and drivers aren't looking for fast-moving vehicles there.
If it's a sidewalk along, say, fenced-in land with no driveways, risks are much lower. But cross intersections at pedestrian speed.
This is a pretty decent website: http://bicyclesafe.com/#crosswalk