Issue 6881: notation for selecting unique element within a list should be more concise (ocl2-rtf) Source: France Telecom R&D (Mr. Mariano Belaunde, mariano.belaunde(at)orange.com) Nature: Uncategorized Issue Severity: Summary: Suggestion: Use brackets with a "!" prefixing mark Example: self.ownedElement[! #Class and name="MyClass"] means self.ownedElement->select(oclIsKindOf(Class) and name="MyClass")->first() Resolution: The suggested syntax comes from QVTo. Non-trivial OCL expressions can be difficult to read. Introducing shorthand notations compromises readability. At present OCL has "." and "->" shorthands that cause significant difficulties. Introducing more does not seem appropriate for the standard language. Disposition: Closed, no change Revised Text: Actions taken: January 7, 2004: received issue December 23, 2013: closed issue Discussion: This is a request to improve the language. Better solved in a RTF. End of Annotations:===== SSUE: The notation for selecting a unique element within a list should be more concise. Suggestion: Use brackets with a "!" prefixing mark Example: self.ownedElement[! #Class and name="MyClass"] means self.ownedElement->select(oclIsKindOf(Class) and name="MyClass")->first()