I completely agree that melee needs to be closer ranged. As mentioned, it's just a tankier ranged without ammo, especially lategame. The farther you get in the game the more it turns into an overpowered mess of other types of weapons. Not long ago I was playing multiplayer with a friend and we were fighting the pillars. We realized that the two melee pillar wepons are rip offs of other classes. The solar eruption is basically a whip, though it was added before actual whips. And the day break is just a non consumable javelin. Aswell as this, my friend was playing melee, and he had better range than me (I was playing ranged). unless I used chlorophite bullets ,the terra blade had more effective range since the projectiles reach the edge of your screen and hits everything due to the size. Aswell as this, the terra blade did as much damage as the sniper rifle per hit, with twice the attack speed and a way bigger projectile. Melee also has way better survivability due to the high defense/damage reduction and the fact that the overhauled swords practically create a force field when you swing them. Melee either needs a huge nerf to all projectile shooting swords including less damage and smaller range and projectiles, or removing projectiles shot by swords entirely. There are tons of mid/long range melee weapons that are way more balanced than swords with projectile, like maces and boomerangs. Swords like the horseman's blade is how melee projectiles should be, since they are only shot out when you hit an enemy at close range with the sword itself. Ever since the sword overhauls in 1.4 I have started to despise how overpowered melee has become. It's sad seeing how OP it is and how much it gets updated, and meanwhile ranged and mage haven't gotten any love since 1.3
I've always loved how balanced terraria was, and how different each class was, but with melee being the favourite child for relogic and getting OP with these more recent updates, meanhile mage and ranged get overshadowed and are ignored by relogic and desperately need new content and some buffs is sad. Now melee is overpowered, summoner is actually viable, (which i do like), and ranged and mage are underpowered and forgoten about. 1.4 made a very clear hierarchy of which classes are relogic's favourites with melee and summoner on top and mage and range somwhere out of sight below them. It's just sad honestly.
Reducing sword projectiles' range or just removing them entirely would be the best way to both re balance melee and bring them back to their roots of close range warriors.
TLDR: remove projectiles directly shot from swords. (And buff ranged and mage but that's neither here nor there)