wow a lot of harsh responses. While I don't agree with mandating such stuff by law as it will create possible legal wrangling and such (and as if we don't have enough stupid laws as it is) it is definitely not the first time I came across this:
I was recently on an SQ flight where they didn't serve satay ex-SIN in J due to fact that we had some pax onboard in the J cabin with allergies. SQ does this voluntarily as there are certainly no laws in Singapore that orders them to do so.
Yes, it's inconvenient, but if it means another fellow pax (and a human being) doesn't need to worry constantly if they will have a severe reaction or worse, a possible fatal reaction or not, then I say it's worth it but only in the context of self compliance and not mandated by law.
Full disclosure:
I don't have any allergies!