Re: Prolog module system
- From: Paulo Moura <pjlmoura@xxxxxxxxx>
- Date: Tue, 12 Jun 2007 11:35:36 -0700
On Jun 12, 6:49 pm, bart demoen <b...@xxxxxxxxxxxxxx> wrote:
...
I have seen Jan's replies and I agree with him: one can do this
minimalistic ADT thing in Prolog with the current module system
with only minimalistic surgery to the module system - I would go
with that instead of poluting Prolog with OO concepts.
I completely fail to understand your use of the word "polluting"
above. Would you say or write that module concepts pollute Prolog?
Your comment above seems to carry a scent of prejudice. Am I wrong?
Modules provide encapsulation features to plain Prolog.
Objects provide encapsulation features to plain Prolog.
Module relations define paths and patterns for code reuse.
Object relations define paths and patterns for code reuse.
Module concepts can be applied to imperative, functional, and logic
languages.
Object concepts can be applied to imperative, functional, and logic
languages.
In fact, objects and modules, as encapsulation mechanisms, are
orthogonal to the programming paradigm used in the subjacent language.
Should I go on?
Which module characteristics do you think make it more suitable as an
encapsulation mechanism for Prolog when compared with objects?
Tradition does not count.
Which object characteristics do you think that do not fit well in a
logic programming environment?
All the best,
Paulo
.
- Follow-Ups:
- Re: Prolog module system
- From: Zoltan Somogyi
- Re: Prolog module system
- From: bart demoen
- Re: Prolog module system
- From: A . L .
- Re: Prolog module system
- References:
- Re: Prolog module system
- From: Mauro Di Nuzzo
- Re: Prolog module system
- From: Paulo Moura
- Re: Prolog module system
- From: bart demoen
- Re: Prolog module system
- From: Paulo Moura
- Re: Prolog module system
- From: bart demoen
- Re: Prolog module system
- From: Paulo Moura
- Re: Prolog module system
- From: bart demoen
- Re: Prolog module system
- Prev by Date: Re: Prolog module system
- Next by Date: Re: Prolog module system
- Previous by thread: Re: Prolog module system
- Next by thread: Re: Prolog module system
- Index(es):
Relevant Pages
|
|