Is It Better Practice To Use package-name:symbol In Code Or :use :package-name In A DEFPACKAGE?

Viewed 482

This is I suspect, a matter of style and/or personal taste but I thought I'd ask anyway.

I have been in the habit of defining packages thus:

(defpackage :wibble
  (:use :cl :drakma)
  (:export :main))

Once I have executed IN-PACKAGE (:wibble, in this case), I can then use the symbols in DRAKMA unadorned:

(http-request ...

Then I recently read that seasoned Lisp hackers would rather not :use but:

(drakma:http-request ...

Just wondered what the consensus of opinion was on here and whether there were any pros or cons (not that type of CONS :) ) either way?

Cheers,

Peter

4 Answers
Related