Is There a Model Zoning Code?

How can zoning be reformed to better enable market outcomes and reduce its high social costs?