eclipse-viatra / org.eclipse.viatra

Main components of the VIATRA framework
https://eclipse.dev/viatra
Eclipse Public License 2.0
0 stars 1 forks source link

Enhancement: add "common" section to OR patterns #2

Open eclipse-viatra-bot opened 5 months ago

eclipse-viatra-bot commented 5 months ago

| --- | --- | | Bugzilla Link | 398751 | | Status | NEW | | Importance | P3 enhancement | | Reported | Jan 22, 2013 10:05 EDT | | Modified | Apr 16, 2019 07:59 EDT | | Version | oldinquery | | Reporter | Istvan Rath |

Description

Cloned from: 151: Enhancement: add "common" section to OR patterns\ https://github.com/ujhelyiz/EMF-IncQuery/issues/issue/151

Instead of:

   pattern inTheCircleOfFriends(S1:Student, Someone:Student) = {\
    find friendlyTo(S1,Someone);\
    S1!=Someone; // observer the evil duplicate code\
   } or {\
    find friendlyTo(S1,CommonFriend);\
    find inTheCircleOfFriends(CommonFriend,Someone);\
    S1!=Someone; // observe the evil duplicate code\
   }\

we could write something like this:

  pattern inTheCircleOfFriends(S1:Student, Someone:Student) = \
  {\
   S1!=Someone; // cleaner, dryer, safer feeling\
   } and {\
    {\
    find friendlyTo(S1,Someone);\
    } or \
    {\
    find friendlyTo(S1,CommonFriend);\
    find inTheCircleOfFriends(CommonFriend,Someone);\
    }\
  }\

The world would be a much better place.

eclipse-viatra-bot commented 5 months ago

By Istvan Rath on May 20, 2013 05:15

These features are planned for 0.8.

eclipse-viatra-bot commented 5 months ago

By Eric Lépicier on Dec 24, 2013 08:08

Also discussed in bug 398787

eclipse-viatra-bot commented 5 months ago

By Istvan Rath on Apr 08, 2014 18:02

Moving this feature to post-0.8.

eclipse-viatra-bot commented 5 months ago

By Istvan Rath on Apr 24, 2014 04:30

This issue will surely be addressed at some point.

eclipse-viatra-bot commented 5 months ago

By Abel Hegedus on Apr 19, 2016 05:24

Updating to correct milestone.

eclipse-viatra-bot commented 5 months ago

By Zoltan Ujhelyi on Oct 04, 2017 05:26

Moving potential tasks from future to 2.0.

eclipse-viatra-bot commented 5 months ago

By Zoltan Ujhelyi on Feb 08, 2018 07:21

Postponing to a future release.