Re: Renaming map->dict, class->type?

Jeff Schultz <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 27/11/2013 10:20, Richard A. O'Keefe wrote:
>
> On 26/11/2013, at 1:13 PM, Jeff Schultz wrote:
>>
>> Good point.  "Map" shouldn't be overloaded.  "Dict" will be familiar to many scripting language programmers.
>
> Which ones?  Perl calls them 'hashes'.  So does Ruby.
> Javascript calls them 'objects'.  PHP calls them 'arrays'.
>
> The Python documentation speaks of "mapping types" and has one
> standard mapping type, "dict".  Off-hand, this is the only common
> scripting language I know that uses that name.  So "_many_
> scripting language programmers" = "_Python_ scripting language
> programmers".

Well, *they* are many, which is what I meant.  I'd misremembered Ruby. 
Javascript actually has Maps if stuffing extra properties into whatever 
Object is handy isn't your thing.


     Jeff Schultz
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.