When introducing Less's Mixin, is it all right with parentheses?

look at the mixin on the official website with parentheses. In actual development, parentheses are sometimes omitted, and the compilation results of the following less are all the same. Can you indicate whether adding parentheses means the same meaning when mixin is introduced?

.bordered {
    border-top: dotted 1px black;
    border-bottom: solid 2px black;
}

-sharpmenu a {
    color: -sharp111;
    .bordered;
}

.post a {
    color: red;
    .bordered;
}

and

.bordered {
    border-top: dotted 1px black;
    border-bottom: solid 2px black;
}

-sharpmenu a {
    color: -sharp111;
    .bordered();
}

.post a {
    color: red;
    .bordered();
}
Jun.04,2021

Currently and historically, the parentheses in a mixin call are optional, but optional parentheses are deprecated and will be required in a future release.

the official website states in the mixins section that parentheses are optional in existing and historical versions when using mixin, that is, optional, but the use of parentheses will be mandatory in future versions, so it is best to add parentheses for future upgrades.

reference link less mixins

Menu