Comments (2)
Thank you for the suggestion but I'm not convinced the suggested change would be an improvement. I don't want this to turn into a long discussion, but since i use the style employed in the system definition of this library in other libraries as well, a proper explanation seems in order.
As an initial remark, I'm basing my current practice on the following description: https://github.com/fare/asdf/blob/master/doc/best_practices.md#trivial-packaging. This sub-section generally makes sense to me although I find it a bit strongly worded.
By starting an ASDF system definition file with
(in-package #:asdf-user)
, you gain two advantages. First, programming tools will be informed that this is the right package to use in order to interpret the file contents.
I can see this point for some kind of basic analysis. However, based on the description referenced above, it seems just knowing the package would not suffice. Maybe ASDF binds other special variables or changes the readtable.
As a result, I assume a more robust approach to analyzing system definitions would be treating .lisp
and .asd
files differently and explicitly establishing the correct environment for each. For ASDF, it seems, unfortunately, like this would entail reverse engineering what the correct environment actually is (Well, to be fair, this might be documented somewhere, I haven't really looked).
Second, if the ASDF file is not in a place where ASDF can find it, the programmer can then use
LOAD
to load it, without updating the places ASDF is looking. This last point is especially useful when there are two versions of the system in the system, for instance one in Quicklisp to be used for "production" and one that is used for development or experiments.
The referenced description states that cl:load
must not be used to load system definition files. Instead, it prescribes the use of asdf:load-asd
. I don't know what the problems with cl:load
are, but I always use asdf:load-asdf
and it has worked fine so far.
For a more convenient way to evaluate such "free standing" system definitions, SLIME's C-c C-k
(but not the form-level evaluation commands) can be used. trace
ing asdf:load-asd
confirms that SLIME's C-c C-k
calls asdf:load-asd
so that everything works.
So in summary, the recommended practice has worked well for me and seems, from my point of view, to address the concerns you raised. Let me know what you think.
from architecture.builder-protocol.
OK, I see. No problem.
from architecture.builder-protocol.
Related Issues (11)
- Incorrect indentation of class-initarg-and-relation-slots HOT 2
- Definition of relation-slot? looks very strange. HOT 2
- Hard to understand documentation string of cardinality-case. HOT 1
- Maybe do not use &REST as a lexical variable
- Improve documentation string for generic function FINISH
- In make-keyword-argument, handle base cases first
- Iterative version of make-keyword-arguments HOT 2
- Improve comment for make-keyword-arguments
- Hard to parse phrase in the documentation string of add-relations.
- Incorrect indentation in add-relations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from architecture.builder-protocol.