Re: [julia-users] Re: Inconsistent dictionary behaviour

2014-05-16 Thread Stefan Karpinski
We really need to make that work the same way – can you open an issue? On Fri, May 16, 2014 at 10:42 AM, Andrew B. Martin andrew.brown.mar...@gmail.com wrote: Found the problem. The indices are tuples of substrings and I'm querying using strings.

[julia-users] Re: Inconsistent dictionary behaviour

2014-05-16 Thread Andrew B. Martin
Should this be mentioned in the documentation? Currently it reads that split returns an array of strings, but I'm finding that it returns an array of SubStrings.

Re: [julia-users] Re: Inconsistent dictionary behaviour

2014-05-16 Thread Stefan Karpinski
Well, SubStrings are Strings. The issue here is that we're hashing tuples based on their type, which is problematic. We very much need to (re)think how collection hashing works. The basic question is whether containers should hash differently based on their type, their eltype, or just their

Re: [julia-users] Re: Inconsistent dictionary behaviour

2014-05-16 Thread Andrew B. Martin
Issue filed: https://github.com/JuliaLang/julia/issues/6870 I'm new to filing issues on github, so please feel free to clarify if I'm not expressing the problem well.

Re: [julia-users] Re: Inconsistent dictionary behaviour

2014-05-16 Thread Stefan Karpinski
No, that's perfect. Thanks! On Fri, May 16, 2014 at 11:14 AM, Andrew B. Martin andrew.brown.mar...@gmail.com wrote: Issue filed: https://github.com/JuliaLang/julia/issues/6870 I'm new to filing issues on github, so please feel free to clarify if I'm not expressing the problem well.