On Sat, Aug 12, 2017 at 1:35 AM, Jason H <jh...@gmx.com> wrote:
> Thank for all the feedback so far, even if it's not the most enthusiastic 
> response to the ideas.
>
> One thing I missed, and I don't know how I could (total face-palm) is:
> 4. Other list methods: i.e. and specifically: [].push(item) vs [].append()
>

Like [].join, this is simply adding a duplicate spelling for something
that already exists. That means that everyone who reads Python code
would have to know both forms. That's not a good use of programmer
time. And unlike [].join, it's purely a duplicate keyword, not giving
you even the benefit of writing something in either order. So I'm
definitely -1 on this.

Have you considered making JS more like Python instead of the other
way around? You can mess with core data types in JS, adding methods to
them. For example:

String.prototype.join = function(arr) {
    return arr.join(this);
}
var strings = ["Hello", "world"];
console.log(" ".join(strings));

That doesn't require any core language changes, and will cover most of
your issues. (You can simply choose to always use quoted strings for
JS keys, for instance.) You can't implement #comment but you can do
all the rest.

Try that for a while, and then see how people like it who collaborate
with you. That's really the key.

ChrisA
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to