If expressing their views makes them less effective in their jobs ...
I cannot see how accepting the expression of racist views by officers in the course of their duty cannot make the police service less effective. Don't you remember the whole issue of institutional racism that came out after the murder of Stephen Lawrence - once you accept the expression of racist views within an organisation you, in effect condone and legitimate racism in all forms.
My view is that a lot of people express racist views in the course of their duties, including ethic minorities - I hear it all the time especially from ethnic minorities when white people aren’t around.
Where did I suggest that racist views were restricted to white people - I didn't. And wherever it arises it is just as wrong.
In fact we all sometimes indulge in racist jokes, sometimes at our own race, sometimes at other races.
Really? Speak for yourself - clearly you have different, and lower standards and interact with different people. I don't indulge in racist jokes, nor do the vast majority of people I know, and those that do rapidly recognise the unacceptability of their views.
I think it would be racist of me to want to punish white people for expressing their racist views while ethnic minorities around me are free to express their casual racism.
I agree, and where did I ever suggest otherwise.
I’d stick to regulating behaviour. If their views are aggressively expressed and causing a person to feel under threat
Expressing racist views is behaviour and I don't think it makes a major difference whether it is casual racism or aggressive - neither is acceptable, and people engaging in society, within its institution including workplaces have a right not to be subject to the expression of racist views that demean them, regardless of whether it is justified as 'just banter'. It isn't acceptable.
At school there are kids who don’t like Muslim - my daughter just chooses not be friends with them as she doesn’t have time / can’t be bothered to find out if their dislike is based on misconceptions.
The school, of course, cannot force pupils to be friend with, or play with others. However the school should come down like a ton of bricks on any pupil expressing racist views within the jurisdiction of the school. If they don't they are grossly failing in their basic duty of care to all their pupils.