Parentheses (as after "print")

Chris Angelico rosuav at gmail.com
Wed Sep 27 03:33:38 EDT 2017


On Wed, Sep 27, 2017 at 5:25 PM, Peter Otten <__peter__ at web.de> wrote:
> If you want that level of -- let's call it consistency -- you should either
> plead for
>
> foo = import("foo")
>
> to spell an import

Yeah no thanks. I work also with JavaScript, and there is no benefit
whatsoever to having lines like:

const express = require("express");

Redundancy is a bad thing. Since importing is so extremely common, it
makes good sense to promote it to syntax and eliminate the redundancy.
That's why we have some things as syntax and others as functions - the
advantages outweigh the costs in some cases, but not in others.

ChrisA



More information about the Python-list mailing list