Skip to content

Comments

Package reform#1602

Merged
Bike merged 12 commits intomainfrom
package-reform
Jul 4, 2024
Merged

Package reform#1602
Bike merged 12 commits intomainfrom
package-reform

Conversation

@Bike
Copy link
Member

@Bike Bike commented Jun 22, 2024

Cleans some stuff up and, importantly, allows package names that aren't just base strings (#1596).

Unfortunately does not fix the way package objects are printed - which is relatively minor, but annoying. The problem is it goes through repr and that returns a std::string.

@Bike Bike marked this pull request as ready for review June 24, 2024 14:18
@Bike
Copy link
Member Author

Bike commented Jun 24, 2024

Fixed it up so package names print right now, so I think it fixes #1596.

@Bike Bike linked an issue Jun 24, 2024 that may be closed by this pull request
Bike added 12 commits June 24, 2024 19:25
Also start on making package functions accept Lisp strings instead
of std::strings. Using std::strings means no support for extended
strings, which is pretty dumb.
not every place, though. still working on it. but this is another
step towards not assuming package names are base strings.

and, bonus? Less stupid consing.
I'm leaving in the string one since we probably use it during boot
or for extensions or some crapola like that.
__repr__ is still broken but it's kind of dumb anyway. To fix it
we'd have to make it not return a std::string, I guess, which
would be a pretty severe change.
Previously it tested if the name was "", but that doesn't work
well given character strings, or the pathological case of an empty
name. We already have a "deleted" flag so we may as well use it.
@Bike Bike force-pushed the package-reform branch from fcfd70b to fa7875b Compare June 24, 2024 23:26
@Bike Bike merged commit ef86dac into main Jul 4, 2024
@Bike Bike deleted the package-reform branch July 4, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extended characters trip up packages

1 participant