Closed braingram closed 11 years ago
Hi Brett,
I think something like this was needed. "object" seems a bit generic though. How about "attr", like "'attr(a:int;b:int)", or "hasattr"? Or do you have any other suggestion?
I agree that object is a bit generic. I like the 'attr' keyword instead. Renamed, and updated commit.
Excellent module too!
OK I merged and added some tests.
I didn't allow "attr" by itself.
I added some support for attribute contract statements (example below).
Example