Re: mutable object model

Alan Baljeu <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Subject:Re: [SWIPL] mutable object model


On 11/13/2013 04:05 PM, Alan Baljeu wrote:
>> By "map" do you mean a special term, stored in a local variable?  Which
>
>I was a little too quick. The maps are currently basically not mutable
>(except for the limited sense as in setarg/3 and friends). I know how I
>could make them mutable transparently without breaking things. I'm a
>little reluctant about mutable datastructures. They do not fit Prolog
>very well.

A solution to that is monadic access.  I don't suggest a way to enforce
monadic use, but a DCG style of protocol could make it convenient.
The other way is something like library(assoc) where the input remains
valid but is typically discarded.

By the sound of things, V7 (which sounds disruptive but exciting) will 
not be ready soon and I shall look elsewhere.
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.