Getting back to the OP's question, some switches such as; low voltage dimmers, motion switches, etc. require a neutral wire. This would be when you need to put a neutral wire at the switch. It is becoming more common to see special type switches like this in residential. The 2 ways of wiring that are most common are,
1) run the line conductors to the light box, then drop down to the switch with a 2 wire NM "hot & switch leg" no neutral wire.
2) run the line conductors to the switch box, then an NM "switch leg, neutral, & ground" to the light.
Both methods work and are code compliant. The second method gives you a neutral at the switch, the first method does not.
Personally I go with the neutral to the switch box, if you don't need it for the switch it hasn't cost you any more work, if you do need it you will be glad you put it there.