8 ms·
Rather large change? As far as I understand it's just adding a new built-in collection and literal form for it (oh, and the pattern-matching machinery for it ob
by masklinn 13y ago
Rather large change? As far as I understand it's just adding a new built-in collection and literal form for it (oh, and the pattern-matching machinery for it obviously).
Python added a set builtin in 2.4 and a literal syntax in 2.7, Objective-C added NSNumber, NSArray and NSDictionary literals only last year.
- rdtsc 13y agoI think it is a rather significant change. It is like adding built-in maps to C++ or Java or C. Python set was similar. And there was talk about whether {} should be an empty set or a dict. It stayed a dict. I remember it. But also in mid 90's already large production systems were written in Erlang while Python was still experimental. Python 2.0 was released in early 2000s or so.
- masklinn 13y ago> I think it is a rather significant change. "Significant" and "large" are different things. A change can be small and significant, and large and insignificant. > It is like adding built-in maps to C++ or Java or C. It's like adding built-ins to anything. Your point? > Python set was similar. Similar what? It was a new builtin and literal to a language which did not have a builtin (let alone literal) set. > And there was talk about whether {} should be an empty set or a dict. Which is relevant how? Also not really, `{}` becoming an empty set literal was taken off the table more or less immediately when the introduction of set literals was being discussed. > But also in mid 90's already large production systems were written in Erlang while Python was still experimental. Python 2.0 was released in early 2000s or so. You're joking right? Python 2.0 was released in 2000 (October), which would quite obviously mean that Python 1 had preceded it by a few years (6), and most things are usually considered not experimental by the time they reach version 1. Python had stopped being experimental more than a decade before sets were added.
- rdtsc 13y ago> It is like adding built-in maps to C++ or Java or C. It's like adding built-ins to anything. Your point? If you'd read my comment you'd understand. The point was that adding a new built-in to an almost a 30 year old language is unusual. Adding a new built-in to Dart is probably a lot easier. So not it is not "like adding built-ins to anything". > > Python set was similar. > Similar what? Wild guess but well I don't know the topic we are discussing -- maps to Erlang. And by extension adding a major built-in type to any established language. > > And there was talk about whether {} should be an empty set or a dict. Which is relevant how? It is not. Just making conversation remembering from years back. Sheesh...
- banachtarski 13y agoYou're comparing apples to oranges. Implementing a data structure in one language cannot be compared to implementing a data structure in a different one.