Uploaded image for project: 'Clojure'
  1. CLJ-2261

dot form silently drops additional (invalid) args

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects versions: Release 1.9
    • Fix versions: None
    • Labels:
    • Approval:
      Triaged

      Description

      If the second argument to . is a seq? every additional arg is silently dropped. In CLJS this throws a compile error.

      (. "xyz" (substring 1) (throw :bug?))
      => "yz"
      

      Might be neat to at least get a warning since it's not immediately obvious when accidentally using . instead of ...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              thheller Thomas Heller
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: