MjAbuz / test

Automatically exported from code.google.com/p/json-template
0 stars 0 forks source link

Need builtin predicate that tests attributes up the stack #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See {.Debug?} which is already a default predicate

Suggesting {.attr debug?}   {.attr isAdmin?} 

Or the other idea is just to make attributes live in the *same namespace*
as predicates:

{.debug?}

{.isAdmin?}

At first this seems confusing, because you could make a typo like
{.isAAAdmin?} and it would return false.  But that's a problem with {.attr
isAdmin} too (if isAdmin is missing, then it will return False)

Original issue reported on code.google.com by gtempacc...@yahoo.com on 11 Dec 2009 at 4:25