In France, and I believe in many other places as well, you can't have a noncompete without proper compensation. Compensation is relative to how it will affect the former employee career, it is usually less than a full wage, but it can be that if it makes finding a new job particularly difficult.
There have been a trend at one time of bullshit noncompete clauses that were too broad and didn't come with compensation, these are not enforceable. If they tried to sue the employee (they don't), they would be laughed off by the judge.
The norm there is paid time off between jobs (“gardening leave”). Everyone knows it is part of the system and that a mid level or senior hire can’t start right away. They also buy out still vesting bonuses and the like.
It’s quite a civilized system and I think the law ought to leave it alone, while addressing abusive ones like we have in tech.
Timing was poor - during the budget season when the entire legislature was in town. The notion that a sandwich stop should be allowed to restrict the future employment is absurd on its face.
Yet there are fields where it makes sense. When I was an employee of the government, ethics laws limited my ability to leave and sell my services to the government in various ways. There are similar scenarios in other industries.
I think this is more about corruption control than non-compete.