Jaseci-Labs / jaseci

The Official Jaseci Code Repository
https://jaseci.org
155 stars 213 forks source link

Re-Introduce Visitor Keyword #1459

Open ChrisIsKing opened 16 hours ago

ChrisIsKing commented 16 hours ago

In Jac 1 when declaring a node and making reference to the walker which is currently visiting you would utilize the visitor keyword. In jaclang we've since changed this to be here. That is fine, but less intuitive when thinking about your program in a data spacial manner. We're suggesting to re-introduce the vistor keyword for simplicity.

A walker visits a node, as such when referring to that walker from the perspective of a node, visitor is more intuitive.