|
|
|
|
Re: bidirectional cross references [message #516133 is a reply to message #516121] |
Mon, 22 February 2010 15:02 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Sven,
Comments below.
Sven Efftinge wrote:
> Ed Merks schrieb:
>>> In Xtext I would like to allow bidirectional references where one
>>> end is transient and gets set as soon as the proxy set on the non
>>> transient opposite is resolved.
>> The problem is that the modification of such a value can't be
>> distinguished from literally altering the object. It also produces
>> surprising results, i.e., seeing different results depending on what
>> you traverse first, and having differently ordered results depending
>> on traversal ordering.
>
> It's not that I personally would want to use it. :-) I'm just looking
> for a story for people who do.
>
> For Xtext the story then seems to be, that bidirectional references
> are only supported if both sides are persisted in the concrete syntax.
Yes. If you think about the example you were using, it's misleading to
model a reference that in reality is unbounded. Knowing all the
subclasses of a given class depends on knowing all classes that exist
and of course that's only possible in a bounded or closed space. So
it's best that folks realize that determining such a thing is an
expensive computation or query, not something that's modeled data.
>
>>> Is that somehow supported by EMF?
>> No.
>
> Great, that makes things much simpler :-)
It's good to be unequivocal sometimes. :-)
>
> Thanks,
> Sven
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03302 seconds