Re: Renaming map->dict, class->type?
Nicos Angelopoulos (Univ of York) <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <20131125220740.0ab00eb9@naga> |
Dear Jan, On Mon, 25 Nov 2013 19:43:53 +0100 Jan Wielemaker <[email protected]> wrote: > Hi, > > Just wondering, should we rename `map' into `dict'? The problem is that > we also have the `map' concept as in maplist/N, map_assoc/2,3, etc. > This will change the documentation as well as rename the map_* predicates. > is this thread of any relevance : https://lists.iai.uni-bonn.de/pipermail/swi-prolog/2012/009169.html would it make any sense to consider names such as `pairs` or similar ? my suggestion would be to highlight in the manual that the names of these predicates are not yet mature and solicit for name recommendations. also working these into the libs and software will lead to ideas on nomenclature. rather than forcing a choice now, i think it is better to let the idea grow on us between map and dict, i 'ld say dict. > The second issue with maps that currently, in x{a:1}, 'x' is called > the `class'. That might be a too much object oriented term. Would > `type' be better? This term only appears in the documentation. > dictionary type, although as far as i understand there is no 'checking' going on, right? so it is more like a 'name'/'id' rather than either class or type Nicos.