• TheCee@programming.dev
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Original poster is right by all accounts, of course. Now, let’s come up with exotic significant indentations.

    function xyz(a, b):
    |   var x = 2
    
    |   if true:
    |   |   do_something()
    |   else:
    |   |   do_something_else()
    
    |   anyway()
    

    Pro: Your editor no longer needs to implement indentation hints.

    Con: Looks obstructive if not highlighted like an indentation hint.

    Your turn.