Ask Your Question
0

Is it possible to have Sass Mixin with arguments that are not dependent on their order and without using named arguments?

asked 2022-06-27 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-05-14 08:00:00 +0000

djk gravatar image

No, it is not possible to have Sass Mixin with arguments that are not dependent on their order and without using named arguments. The use of named arguments is the only way to ensure that the arguments are passed to the Mixin correctly, regardless of their order. Without named arguments, the order of the arguments would be crucial, and any mistake in the order could result in errors or unexpected results. Therefore, it is recommended to use named arguments whenever possible for better readability and maintainability of the code.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-06-27 11:00:00 +0000

Seen: 10 times

Last updated: May 14 '22