2008/4/21, Roger Pack <roger / doachristianturndaily.info>: > >> I have no idea why it doesn't consider a hash a parameter. > > > > Precedence. > > Yeah for some reason That "some reason" is probably the language's syntax definition. > it is considering my function a block a higher > predencdence than a hash parameter. > So my next wish would be: > That ruby-core would allow us to make suggestions for how to better > their error messages :) I have never heard someone was turned down who made a reasonable suggestion. > And also [sigh] that hashes and blocks used a different syntax, or that Not going to happen. Just think of the mess that would do to existing code. > the ambiguity noted could be overcome. Is it just me or does this issue come up rarely? My impression is that people stumble over it at most once and never again. This does not feel like a big deal - certainly was never for me. But of course YMMV. Cheers robert -- use.inject do |as, often| as.you_can - without end