If you get a Glock 23 in .40 you can purchase barrels in both 9mm and .357 Sig which give you three pistols in one. The .40 mags will work with .357 Sig. Apparently the 9mm barrels work best with G19 mags.
Lot of options with a Glock. Lots of aftermarket items.
All the Best,