el-get icon indicating copy to clipboard operation
el-get copied to clipboard

Pass pacakge names internally as symbols

Open DarwinAwardWinner opened this issue 13 years ago • 7 comments

The function "el-get-as-symbol" is only used in interactive functions that accept user input. All other functions assume packages are passed and returned as symbols.

Assertions have been added to many functions that take packages or lists of packages to enforce this. These can be removed later once we are sure that we're not passing any strings internally.

DarwinAwardWinner avatar Mar 10 '12 03:03 DarwinAwardWinner

Well I guess that if you run the test suite against the assert-enabled branch that would allow us ascertain we're only using symbols internally. Do we need to include the asserts in the official el-get code (not opposed to it per-se, only curious).

dimitri avatar Mar 10 '12 19:03 dimitri

No, we don't. That's why I put them in a separate commit, so I could easily revert them later. I've run the test suite against this branch, and all the tests passed.

DarwinAwardWinner avatar Mar 10 '12 19:03 DarwinAwardWinner

I'm not convinced we should install the asserts, however, please do as you see fit. Maybe with a new function el-get-verbose-assert so that we only assert when el-get-verbose?

dimitri avatar Mar 10 '12 19:03 dimitri

No, we shouldn't install the asserts. They're just for testing purposes, so that any package-names passed as strings will get caught quickly during testing with a predictable error message.

DarwinAwardWinner avatar Mar 10 '12 20:03 DarwinAwardWinner

As you see fit, and thanks agin for all the testing :)

dimitri avatar Mar 10 '12 20:03 dimitri

Where are we on that? Is it still needed?

dimitri avatar Dec 14 '12 22:12 dimitri

This isn't high-priority, because it isn't actually fixing any bugs. This can wait until after the next release.

DarwinAwardWinner avatar Dec 14 '12 22:12 DarwinAwardWinner