Unofficial Hacker News companion — get notified on comment replies, and more.

I checked Clojure's core with Lean and found unreported bugs (opens external site)

238 points by encyclopedism 6 days ago | s.conao3.com | 85 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. (.indexOf (seq (byte-array [1 2 3])) 2)

    This is not a bug. This is acting as you would expect once you realize the types you are looking at. While a simple reading of this would expect it to return the "3", this line doesn't return the "3" because the "2" is a Java Long, while the bytes are bytes.