Out of the three classic caster-type classes in Baldur's Gate 3, Warlocks are by far the most versatile. They can specialize in melee combat to great effect, but the best way to build a Warlock is actually by focusing more on their powerful magic abilities.