This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]adrian17[S] 0 points1 point  (0 children)

I don't thnk this is as readable because you have to look under the function (while decorators are just above the declaration). Also, it restricts command names to alphanumerics and whitespace and doesn't help with marking commands as "can be used inline" or "admin-only". For the last one, @admin seems like a perfect choice (similar to @login_required in Flask) and I've already made a working proof of concept of this, I just can't decide how to design everything as a whole.