New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rakudo inappropriately uses .gist for caching "is cached" sub arguments; needs proper solution #3722
Comments
From @smlsIn current Rakudo, the 'is cached' trait for routines compares incoming argument lists by their .gist representation. This was probably done as a temporary work-around, and is not a satisfactory solution because: * .gist elides information (e.g. cutting off lists/arrays after the first few elements), thus causing false positives. * .gist is explicitly meant as a summary for human consumption, and not for hashing/comparing objects. IRC discussion of the problem: masak: 'is cached' does some "snapshotting" of the incoming maybe-reference IRC discussion about what a proper solution might look like: TimToady: I think each immutable type should have a hash function of some |
From @jnthnOn Sun Mar 08 07:02:33 2015, smls75@gmail.com wrote:
Since there was no obvious solution in sight, and there were other issues with "is cached", we've decided to defer this functionality to a future Perl 6 language version. So, removing it from the xmas list. |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#124016 (status was 'open')
Searchable as RT124016$
The text was updated successfully, but these errors were encountered: