There's a large econ literature on this Basically boils down to "it depends" last time I checked, in 2012 or so Issue in software in particular is patent thickets Right now we seem to be in "way too many patents" territory, may be a problem with implementation rather concept
There was also a fun discussion on using prizes instead of patents ie temporary monopolies to reward innovation but there are a bunch of issues there too