3 ms·
Ceylon looks very interesting. The union type is a brilliantly simple way to combine types. It's something that once you've seen it you would ask how come typ
by ww520 12y ago
Ceylon looks very interesting. The union type is a brilliantly simple way to combine types. It's something that once you've seen it you would ask how come type combination not done this way all along.
The map comprehension is very interesting, going beyond list comprehension. Should make functional style programming easier.
I wonder how big the download of the runtime is for running as Javascript inside the browser.
- thomasahle 12y agoPython has map comprehensions like this: {i: i+1 for i in range(10)} Works pretty well.
- deleted 12y ago[deleted]
- jmgrosen 12y agoPerhaps more comparable to the comprehensions shown in this post would be generator comprehensions: list(p.first_name + " " + p.last_name for p in people) dict((p.first_name + " " + p.last_name, p) for p in people) set(j.organization for p in people for j in p.jobs) print(", ".join(p.first_name + " " + p.last_name for p in people)) (Of course, Python has sugar for the first three.)