Closed plexus closed 3 years ago
Released in
[lambdaisland/uri "1.4.74"]
{lambdaisland/uri {:mvn/version "1.4.74"}}
@plexus The newest bb now supports overriding Object toString
on defrecords.
@borkdude I still need to guard the IFn invoke
implementation, correct?
@plexus Correct. Currently SCI records only support implementing protocol functions. Now there is a special case for Object/toString per your issue.
Cool, toString
support for babashka is now available in
[lambdaisland/uri "1.12.89"]
{lambdaisland/uri {:mvn/version "1.12.89"}}
From the README:
Babashka-specific caveats (also applies to SCI)
Instances of URI implement the
toString
method, so calling(str uri)
gives you the URI back as a string. They also implement theIFn
interfaces so they are callable the way maps are.On babashka implementing interfaces or overriding Object methods is not supported. As an alternative to
clojure.core/str
you can uselambdaisland.uri/uri-str
. As an alternative to using the URI as a function, use the keyword as a function, or useclojure.core/get