If you add duplicate column names the application will crash upon startup with error
messages that are less than helpful in finding the bug.
I found it by removing all models from the model directory and reintroduced them one by one until it crashed again. Then I inspected it very carefully and noticed that I had two column names that were identical by accident.
So, duplicate column names should be identified as such and reported upon.
I used MongoDB for the database. Thus "column" names.
In theory you should not be able to have duplicate column names at all,
I am assuming that you have a module something like this, we should reject this with an error message
-module(dup, [Id :: integer(),
Test :: binary(),
Test :: binary()]).
Your assumption is correct. The compiler runs through it right now and fails later.
Maybe this can be caught during compilation?
It will now refuse to compile the module and give a useful error
if there is a duplicate parameter then issue an error message