Re: How to get swords on your starship
Another possibility is to have swords be ubiquitous for practical reasons. Say for instance that pretty much all crewmen aboard a spaceship (or at a remote colony, etc.) carry configurable tools made of some lightweight, intelligent nanomaterial. Such tools can be programmed to form into countless shapes for various practical jobs. They can also be programmed to shape themselves into melee-type weapons. Since everybody has one, they eventually become commonplace as weapons. They could even morph themselves during a fight as part of an informal (or even formal) martial art.
Again, they wouldn't take the place of guns as such, but if everyone knows how to use one, any tough guy worth his salt would be handy with them. Plus they could be difficult for automatic security systems to detect, as opposed to the very obvious gunfire/lasers/etc.