An unofficial, read-only Hacker News reader. Join the beta →

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

238 points by encyclopedism 2 days ago | s.conao3.com | 84 comments on HN

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.