On 2010-02-20 11:04:36 -0500, Andrei Alexandrescu <[email protected]> said:

"iota" is already present with the same semantics in 1.25 languages: C++ and Go. Anyhow, what's a better name?

"iota" is perhaps a silly looking name, but at least you're not bound to confuse it with something else. It's always better to have names you don't understand (forcing you to look at the doc) than names you understand subtly wrong (which might introduce bugs).

The best way to get rid of iota would be to replace it with the same syntax the language already use elsewhere:

        1..10

Like ruby does with its range operator[^1]. But that's not so simple as changing a name...

[^1]: http://ruby-doc.org/core/classes/Range.html

--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to