vyperlang / blackadder

MIT License
14 stars 5 forks source link

Enforce decorator ordering #2

Open iamdefinitelyahuman opened 3 years ago

iamdefinitelyahuman commented 3 years ago

It would be nice to automatically re-order function decorators. In my opinion the best sequence is mutability, visibility, re-entrancy:

@view
@external
@nonreentrant('lock')
def foo():
    ...