"Lisp Style" indentation in curly binding languages

I would like to know what people think about using Lisp indentation style for languages ​​like C ++, Java, JavaScript, etc. I've always been a fan of Python and how it was formatted without braces. It is very compact and clean for me. I was wondering if it would be nice to do something like this on the shape of the figures. I have been working on JavaScript lately, so I will use JavaScript as an example.

I usually use something like this, like

function doStuff (stuff1, stuff2) {
    if (stuff1 === stuff2) {
        doMoreStuff();
        doEvenMoreStuff();
    }
    else {
        takeABreak();
    }
}

Then it will become

function doStuff (stuff1, stuff2) {
    if (stuff1 === stuff2) {
        doMoreStuff();
        doEvenMoreStuff(); }
    else {
        takeABreak(); } }

, , Python. Lisp , , , , , , . . , Python JavaScript?

+5
1

, , . , .

, , , () . ( , - ), , . - .

+4

All Articles