It remains true to this day that a member of the Swiss armed forces (a mandatory obligation for males (unless found unfit or ineligible), voluntary for females)) takes his portable equipment home with him.  Presently, this includes a selective fire 5.56mm Sturmgewehr 90 assault rifle or the selective fire 7.5mm Sturmgewehr 57 battle rifle.  Both would be classified as machine guns by our BATFE.

Personally, I'd be far safer strolling in your average Swiss city or suburb than most other places with more-or-less de facto gun bans.

Adding a bit of levity here, there's a well-known dialogue that goes like this:

GERMAN SOLDAT:  "You Swiss should be grateful we Germans don't invade and take over your country; we have easily twice the men you do."

SWISS SOLDAT:  (Pauses to think for a moment)  "Then I suppose, then, each of us Swiss will have to fire our rifles twice."