There's a few cities like this in the USA.  The most well known is The Villages in Florida which is a huge retirement community.  They have special lanes for golf carts and they have the right of way.  It's not uncommon to get cut off by some elderly person in a golf cart when driving there (I used to all the time for business).  There's also a few cities that allow them on public roads as part of the city ordinance, Lake Helen is one.