We don't bite newbies here... much  
PerlMonks 
Re: (OT) Pushing inductive systems to their limitby blokhead (Monsignor) 
on Jul 29, 2005 at 21:39 UTC ( #479533=note: print w/ replies, xml )  Need Help?? 
I don't know a lot about heavyduty logic programming, so I'm wondering what (if any) kinds of logic programming paradigms aren't easily doable with nothing but a good unificationbased case statement (perhaps in the guise of multimethod dispatch)? In other words, I'm seriously interested in an entirely separate module which allows robust unification of perl data structures.Again, the application to case statements makes this sound like it's in a similar vein to P6's "~~" smart match operator. The main problem that I see is what happens when one tries to unify two conditionally bound objects? Should a junction be the result? Should the unification fail because we have nothing real to bind to? Should they only be allowed to unify iff they are identical? Is there any merit to this idea at all?A junction/intersection is the only interpretation that makes any sense to me. If you think of unification using a geometric interpretation, the unbound variables in the unification problem are the basis of a vector space, the constraints are linear/affine (in)equalities in that space, and the solution of the unification is the intersection of all the affine constraints. Think of unifying (x,x,y) with (x,y,y). The 2d vector space of assignments to {x,y} collapses to a 1d vector space. Of course the constraints you are considering aren't affine, and the spaces aren't exactly vector spaces, but the intuition is the same. Under this interpretation, it's clear that you would want to take the intersection of the ranges of two "conditionally bound" objects. blokhead
In Section
Meditations

