From: Yukihiro Matsumoto Date: 2004-09-06T07:31:21+09:00 Subject: Re: OK... :) question about hash and array literals Hi, In message "Re: OK... :) question about hash and array literals" on Mon, 6 Sep 2004 03:36:08 +0900, Hal Fulton writes: |Is it a possible option to change the semantics of [x=>y] ? | | h1 = {1=>2, 3=>4} # order not guaranteed | h2 = [1=>2, 3=>4] # order guaranteed | |I realize (now) that [x=>y] is currently an array with a |single element which is a hash. Are there any reason to make hash literals not to guarantee order? I thought h = {1=>2, 3=>4} will preserve the order, when ordering is implemented. matz.