Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, doing
==on arrays fails at runtime withand produces a
boolat typecheck time instead of atype[std.bool].My approach to fixing this is to replace uses of
Arraywithstd.array, which has a__gel_type_class__and all the appropriateoverloadings.
When I extend this approach to other similar types, though, like
Range, I run into problems: thetyping_dispatchbased overloadedconstructor for range always fails when doing a
Type.model_validate(r.model_dump()), in part because the overloadsall seem to want want
std.booland won't accept real bools.@elprans Does this seem like the right approach, and I should continue
down this path and fix any problems in the way (like those mentioned
above), or do you think I'm on the wrong track here?