jank-lang / jank

A Clojure dialect hosted on LLVM with native C++ interop

Home Page:https://jank-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ratio support

jeaye opened this issue · comments

Clojure supports 3/4 as a ratio. ClojureScript supports this at the reader level, but not at the object level. It will just read it as (/ 3 4), whereas Clojure has a specific ratio object.

For jank, let's follow ClojureScript here until we have a reason to add a ratio object.

Official docs on this: https://clojure.org/reference/data_structures#_ratio