[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help sought understanding shorthands wrt modules/packages

From: Yuri Khan
Subject: Re: Help sought understanding shorthands wrt modules/packages
Date: Wed, 9 Nov 2022 12:42:24 +0700

On Wed, 9 Nov 2022 at 11:04, Richard Stallman <rms@gnu.org> wrote:

> There was a feature that let you specify, in one package FOO, "Let me
> omit package prefixes when I refer to symbols from package BAR."

> The general idea is a nice one, but it doesn't work in Lisp.

This feature exists in C++, Python, Scala, and many other languages,
and most code style guides frown upon using it, for the very reasons
you cite. It is tolerated sometimes for tightly coupled modules, like
a library and its automated tests, or a public interface module of a
library importing its internal implementation modules wholesale.

Point is: wholesale import is a sharp tool best reserved for very
special circumstances.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]