programming-idioms
programming-idioms copied to clipboard
Refuse dupe snippets
IF user is saving (new or existing) impl Y for idiom X and language L AND there already exists another impl Z for the same idiom X and language L such that trim(Y.code)==trim(Z.code) THEN refuse saving, with an explicit message linking to the existing impl.
"Cancel" is the only possible option here, no "Save anyway".