To be clear here, the issue isn’t the copying of code, which is covered by copyright. It’s the copying of the function served by the code. It’d be like saying Rush Hour needs to pay a licensing fee to the producers of Lethal Weapon because they already patented the idea of an interracial action/comedy movie about cops.

Matthew Yglesias