core.match

large pattern problematic for ClojureScript

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

(ns test
  (:use-macros [clojure.core.match.js :only [match]])
  (:require [clojure.core.match]))

(defn get-meaning
        [paragraph line blank mode theme annotation]
                (match
                        [paragraph  line    (> blank 0) mode    theme   annotation  ]
                        [_          _       true        _       _       _           ] "monaco-enter"
                        [_          _       _           _       true    _           ] "monaco-theme"
                        [_          _       _           _       false   true        ] "monaco-annotation"
                        [_          _       false       :theme  _       false       ] "monaco-note"
                        [0          0       false       _       false   false       ] "monaco-outcome"
                        [0          _       false       _       false   false       ] "monaco-perex"
                        [1          _       false       _       false   false       ] "monaco-next-action"
                        [2          _       false       _       false   false       ] "monaco-following-action"
                        [_          _       false       nil     false   false       ] "monaco-supplemental"
                        :else "monaco-generic"
                        )
        )

Activity

David Nolen made changes -
Field Original Value New Value
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: