ClojureScript

support :include-macros true modifier in :require

Details

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

Description

This modifier will additionally trigger a load of a Clojure file containing macros that matches the namespace. This would allow libraries to adopt cljs.core's inlining macro style without needing both a :require-macros and :require.

The following should be supported:

(ns foo.bar
  (:require [baz.woz :as woz :include-macros true))
(ns foo.bar
  (:require [baz.woz :as woz :refer [one] :refer-macros [two]))

I think the following is probably a bridge too far:

(ns foo.bar
  (:use [baz.woz :only [one] :include-macros [two]))

Activity

David Nolen made changes -
Field Original Value New Value
Assignee David Nolen [ dnolen ]
David Nolen made changes -
Status Open [ 1 ] In Progress [ 3 ]
David Nolen made changes -
Description This modifier will additionally trigger a load of a Clojure file containing macros that matches the namespace. This would allow libraries to adopt cljs.core's inlining macro style without need both a :require-macros and :require. This modifier will additionally trigger a load of a Clojure file containing macros that matches the namespace. This would allow libraries to adopt cljs.core's inlining macro style without needing both a :require-macros and :require.
David Nolen made changes -
Description This modifier will additionally trigger a load of a Clojure file containing macros that matches the namespace. This would allow libraries to adopt cljs.core's inlining macro style without needing both a :require-macros and :require. This modifier will additionally trigger a load of a Clojure file containing macros that matches the namespace. This would allow libraries to adopt cljs.core's inlining macro style without needing both a :require-macros and :require.

The following should be supported:

{code}
(ns foo.bar
  (:require [baz.woz :as woz :include-macros true))
{code}

{code}
(ns foo.bar
  (:require [baz.woz :as wiz :refer [one] :refer-macros [two]))
{code}

{code}
(ns foo.bar
  (:use [baz.woz :only [one] :include-macros [two]))
{code}
David Nolen made changes -
Description This modifier will additionally trigger a load of a Clojure file containing macros that matches the namespace. This would allow libraries to adopt cljs.core's inlining macro style without needing both a :require-macros and :require.

The following should be supported:

{code}
(ns foo.bar
  (:require [baz.woz :as woz :include-macros true))
{code}

{code}
(ns foo.bar
  (:require [baz.woz :as wiz :refer [one] :refer-macros [two]))
{code}

{code}
(ns foo.bar
  (:use [baz.woz :only [one] :include-macros [two]))
{code}
This modifier will additionally trigger a load of a Clojure file containing macros that matches the namespace. This would allow libraries to adopt cljs.core's inlining macro style without needing both a :require-macros and :require.

The following should be supported:

{code}
(ns foo.bar
  (:require [baz.woz :as woz :include-macros true))
{code}

{code}
(ns foo.bar
  (:require [baz.woz :as woz :refer [one] :refer-macros [two]))
{code}

{code}
(ns foo.bar
  (:use [baz.woz :only [one] :include-macros [two]))
{code}
David Nolen made changes -
Description This modifier will additionally trigger a load of a Clojure file containing macros that matches the namespace. This would allow libraries to adopt cljs.core's inlining macro style without needing both a :require-macros and :require.

The following should be supported:

{code}
(ns foo.bar
  (:require [baz.woz :as woz :include-macros true))
{code}

{code}
(ns foo.bar
  (:require [baz.woz :as woz :refer [one] :refer-macros [two]))
{code}

{code}
(ns foo.bar
  (:use [baz.woz :only [one] :include-macros [two]))
{code}
This modifier will additionally trigger a load of a Clojure file containing macros that matches the namespace. This would allow libraries to adopt cljs.core's inlining macro style without needing both a :require-macros and :require.

The following should be supported:

{code}
(ns foo.bar
  (:require [baz.woz :as woz :include-macros true))
{code}

{code}
(ns foo.bar
  (:require [baz.woz :as woz :refer [one] :refer-macros [two]))
{code}

I think the following is probably a bridge too far:

{code}
(ns foo.bar
  (:use [baz.woz :only [one] :include-macros [two]))
{code}
David Nolen made changes -
Resolution Completed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: