Comparing an archer ranger to a warlock, the warlock is +2 to hit less but has the choice of going against Reflex and (Fort or Will) instead of AC.
The warlock at a minimum ties that comparison, and usually wins it. The warlock is also able to get combat advantage via stealth more, but let's overlook that since it's not a typical tactic.
The rogue and fighter get a +1 accuracy bonus, but also incur far more danger than the warlock does - ditto melee weapons with +3 proficiency. Being in melee is a serious requirement and if the warlock _is_ in melee himself he gets +1 to hit from Prime Shot