1. 8

    I frowned when I saw that one character difference. I’m glad that’s now fixed. It’s really annoying when a standard library gives you a foot gun like that.

    1. 4

      Agreed. Rust’s stdlib containers do not allocate by default. This makes a lot more sense to me.

      1. 2

        Assuming “Java 1.3” meant JSE1.3, it was released in 2000. I’m not sure if initializing a HashMap in that way is really a footgun. We don’t know the context. It’s possible it was used in the application in a non-expected way, by someone who was not familiar with Java.