This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-26
Channels
- # ai (1)
- # announcements (7)
- # babashka (2)
- # beginners (23)
- # biff (3)
- # calva (1)
- # chlorine-clover (3)
- # cider (2)
- # clj-kondo (12)
- # clojure (25)
- # clojure-brasil (4)
- # clojure-europe (33)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (1)
- # clojurescript (30)
- # clr (6)
- # consulting (1)
- # cursive (14)
- # data-science (1)
- # datalevin (4)
- # datomic (3)
- # events (4)
- # graphql (1)
- # gratitude (2)
- # hoplon (10)
- # inf-clojure (3)
- # interceptors (1)
- # introduce-yourself (1)
- # off-topic (13)
- # pathom (2)
- # pedestal (12)
- # rdf (14)
- # releases (6)
- # sci (17)
- # shadow-cljs (12)
Public utility for beginners and life in general 🙂 https://www.youtube.com/watch?v=Rufif247scI
Hey guys and girls, I was recommended on Reddit to post the following here: "I read in the community rules there would be a monthly Who's Hiring post, but there wasn't. So I'm here to say I'm hiring! US-Based Clojure developers: Must have used Clojure professionally and this role is backend based. Base Salary is: 200-250k + 100k annual bonus Feel free to reach out to me on Linkedin or via email if this could be interesting: <mailto:[email protected]|[email protected]> https://www.linkedin.com/in/jamie-philip-88842a19a/"
Thanks @U2FRKM4TW I will do
TIL: (bigdec (fn-that-returns-double))
can throw!
(instance? Double ##Inf)
=> true
(bigdec ##Inf)
Execution error (NumberFormatException) at java.math.BigDecimal/<init> (BigDecimal.java:594).
Character I is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
It is actually a JDK issue.user=> (BigDecimal. ##Inf)
Execution error (NumberFormatException) at java.math.BigDecimal/<init> (BigDecimal.java:974).
Infinite or NaN
user=> (BigDecimal/valueOf ##Inf)
Execution error (NumberFormatException) at java.math.BigDecimal/<init> (BigDecimal.java:594).
Character I is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
user=>
how is that an issue with the JDK? bigdecimal has arbitrary precision but it is not able to represent infinity (like Double can), so there is no way to make this work
this error feels unintentional: it can't parse the double representation. Also happens with NaN
I'd expect some explicit error.
the java doc for valueof which is what bigdec calls says no inf or nans https://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html#valueOf(double)
NumberFormatException is an explicit error?