lgwillmore / warden

Kotlin Attribute Based Access Control
MIT License
19 stars 3 forks source link

DSL - Make second operand accessors prettier #1

Open lgwillmore opened 4 years ago

lgwillmore commented 4 years ago

At the moment the second operand accessors for expressions is like 'subjectVal("Blah")'. It would be better as just subject("Blah"). I think kotlin DSL scoping tools can fix this.

Or if it is not possible to have the same keyword in both contexts in the scope, then when a policy is built they are all validated to check that the mistake has not been made.