Patent ID: 7818719

Claim:
A system that facilitates creation of object instances using expressions, comprising: a processor; system memory; a syntax component executed by the processor that facilitates extension of object-creation-expression syntax, the object-creation-expression syntax comprising computer programming code configured to create an object using a single expression, wherein extension of the object- creation-expression syntax allows object creation that is expression-based such that a developer can implicitly define functionality that is inferable by a code compiler, wherein the extension allows multiple objects to be created on-the-fly within the expression, such that new objects and new object parameters are defined in the same expression, wherein at least one of the new object parameters is passed as a function parameter to a constructor of an object class for implementation by the constructor and wherein at least one of the new object parameters is not configured for passing to the constructor and is not implemented by the constructor; and an initializer component that provides for initialization of a newly-created entity using the expression, wherein the initializer component provides initialization of the newly-created entity utilizing an object initializer, wherein the object initializer includes a sequence of member initializers that are assigned to the newly-created entity which is an object; and an inference component that facilitates code inference by inferring a code when given a type in the expression.