Codingstyle

Codingstyle

Post by Kim Christ » Sun, 30 Jul 2006 03:51:57


Hello,

Is there any standard or recommended way to pass objects to predicates? I
often have predicates which take a list as input, some numeric value and a
object for the "result". Like

dostuff([A|B], N, L) :- ...

Best regards,
Kim
 
 
 

Codingstyle

Post by Lars » Sun, 30 Jul 2006 04:30:21


What exactly is an "object"?

 
 
 

Codingstyle

Post by Ole Anders » Sun, 30 Jul 2006 05:06:33


Anything I guess. My book (Bratko) speaks of data objects as atoms, numbers,
variables and structures.