🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.lisp
Article #107

Re: usage of in-package and defsystem

#107
From: tfb
Date: Tue, 01 Dec 2026 17:22
24 lines
1800 bytes
Anton Antimo <anton@safunu.org> wrote:

> 
> Why should I 
> 
>   (in-package :cl-user)
> 
> before defining my own package?

When a file is loaded the package is initially whatever its ambient value
was. Making it be CL-USER removes that uncertainty (to be more paranoid you
might want to say (cl:in-package :cl-user)).

> 
> And why should I define my own package to define my system?
> 

I generally define systems in ASDF-USER.  But in the case you give it's not
just systems being defined: it's other things as well: you likely want
those in their own package, not some shared playground.


-- 
tfeb.org/computer/
Technical Details
Message-ID: <11emvo4$1uu33$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <87tskx8434.fsf@safunu.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: tfb <tfb@work.it.out>
Newsgroups: comp.lang.lisp
Subject: Re: usage of in-package and defsystem
Date: Tue, 1 Dec 2026 17:22:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <11emvo4$1uu33$1@dont-email.me>
References: <87tskx8434.fsf@safunu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 01 Dec 2026 17:22:12 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2062435"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/vurmx6ZapIdl501fhY3SX"; posting-host="2124d376f87b579bbff661828eaa4a66"
User-Agent: NewsTap/5.6.3 (iPad)
Cancel-Lock: sha1:H2ALjHWgK/eH5o6vfGQKj62zOAY=
	sha1:7az4UgulN9du+V+7CUw+1deUmHM= sha256:hYKR3bpDABTH85Lxlm77bz06DiR87/pIxHiUq8yqP0w=
	sha1:RlEbC+9hxAuo8Iu4JhBzHfrGHzc= sha256:rzgJ5yYCmSwsHKdbTIz1iMHlDAA/IadGbd5bU2XP+yw=
X-Face: MUamY>^a5S.|?6RN|-|NWN5bt&pk2lG9&5,.QQ4