Sucks to be someone who was just about to turn 40 and was affected by this layoff, knowing they'd have had additional legal protections were they only a little bit older.
Totally agreed. All the other protected statuses work both ways, as in, you can't discriminate against people who are pregnant/parents, but you also can't discriminate against those who are not (i.e. by expecting them to shoulder greater responsibilities, or targeting them for layoffs first).