It's totally unrelated to what France is doing (in spite of what some might think) but Quebec does something like this as well. As in it forces municipalities to mix things up in terms of housing types.
For example, not too far from where I live, there is this social housing:
https://www.google.com/maps/@45.4966...7i16384!8i8192
Which is less than 500 m or a 5-minute walk away, from this:
https://www.google.com/maps/@45.4983...7i13312!8i6656
That path in the second photo leads straight to the basketball court and skating rink in front of the social housing buildings.
And this isn't just affluent infill into an already poor area with a good location.
The whole area was planned this way, and built around the same time.