Uploaded image for project: 'core.typed'
  1. CTYP-267

bigdec, bigint and biginteger eats (U Number String)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: 0.3.10
    • Fix versions: Backlog
    • Components: Core type system
    • Labels:

      Description

      (cf bigdec) => [Number -> BigDecimal]
      

      However bigdec can also read strings, like

      (bigdec "10.10024") => 10.10024M

      bigint and biginteger can also read strings.

      The default annotations

      clojure.core/bigdec [Number -> BigDecimal]
      clojure.core/bigint [Number -> clojure.lang.BigInt]
      clojure.core/biginteger [Number -> java.math.BigInteger]
      

      should therefore likely be extended to

      [(U Number String) -> ...]
      

        Attachments

          Activity

            People

            • Assignee:
              ambrosebs Ambrose BS
              Reporter:
              claj Linus Ericsson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: