When a carbonyl compound is treated with a strong base, the α position gets deprotonated to give a resonance-stabilized intermediate called an enolate. Enolates are ambident nucleophiles because they possess two nucleophilic sites that can attack an electrophile owing to the delocalization of the negative charge between the α carbon and oxygen atoms. When the oxygen atom attacks an electrophile, it is called O-attack, whereas electrophilic attack via the α carbon is known as C-attack.
C-attack is much more common than O-attack despite the negative charge being more localized on the oxygen atom. (Recall that for a set of contributing structures with a negative charge on different atoms, the contributing structure with the negative charge on the most electronegative atom will usually most closely resemble the true structure.) As a result, there are two distinct conventions in drawing the C-attack mechanism:
The carbanion mechanism convention is more simplistic in representation because it needs fewer curved arrows, but both conventions are widely used.
While acyl chlorides react at an enolate's oxygen site to yield enol esters, alkyl halides usually react via the α carbon.
This is because an enolate is an ambident nucleophile. Its nucleophilic oxygen and a carbon can both attack an electrophile, called O-attack and C-attack, respectively.
Although the enolate's oxygen atom bears most of the negative charge, most reactions involve a C-attack rather than an O-attack because the α carbon has a greater share of the HOMO.
While drawing the mechanism for the C-attack of an enolate, the realistic convention starts with the negative charge on oxygen, as the oxyanion is the more significant contributing structure.
The simpler convention is to draw the C-attack with the negative charge on the α carbon. The carbanion is the less significant contributing structure, but fewer curved arrows are needed to depict the mechanism.
The two conventions represent the same overall electron movement, so the choice is based on a preference for accuracy or simplicity.