2 ms·
I 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 {} sh
by rdtsc 13y ago
I 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...