User Tools

Site Tools


can_roles_be_unbound_in_a_context

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

can_roles_be_unbound_in_a_context [2014/01/27 15:34]
gazoot Clarified difference between unbound Roles and Roles set to null.
can_roles_be_unbound_in_a_context [2014/02/03 15:41] (current)
gazoot
Line 2: Line 2:
 All Roles should be bound as an atomic operation before an Interaction starts, which leaves no place for unbound Roles. If you run into that problem, it could be a sign that the scope of the Context is too large, or other problems with the underlying mental model. All Roles should be bound as an atomic operation before an Interaction starts, which leaves no place for unbound Roles. If you run into that problem, it could be a sign that the scope of the Context is too large, or other problems with the underlying mental model.
  
-Note the difference between "​unbound Roles" and "Roles set to null". Setting ​the field that identifies a Role to null is allowed if your language supports it, be aware though that it can complicate things, forcing null checks throughout the Context.+Note the difference between "​unbound Roles" and "Roles set to null". Setting ​field that identifies a Role to null is allowed if your language supports it, be aware though that it can complicate things, forcing null checks throughout the Context.
  
 Also note that the Roles can all be rebound before another Interaction in the same Context occurs. Also note that the Roles can all be rebound before another Interaction in the same Context occurs.
can_roles_be_unbound_in_a_context.txt ยท Last modified: 2014/02/03 15:41 by gazoot