It is a nice thing.

But I have always wondered why doesn't diesel and petrol cars have different shaped fuel filling ports? So that one would never fill the wrong fuel type from a filling station?

at least in Europe, diesel pumps have a larger nozzle, so they don't fit in gasoline cars. the other way goes fine though.

I see. It seems such an obvious thing.