Giter Site home page Giter Site logo

Comments (4)

bbatsov avatar bbatsov commented on May 14, 2024

Will do.

from clojure-style-guide.

AlexBaranosky avatar AlexBaranosky commented on May 14, 2024

That said, as Technomancy pointed out, it is pretty standard to test files naked using or require/referring clojure.test and the ns under test. Maybe we could mention that in the style guide.

from clojure-style-guide.

tendant avatar tendant commented on May 14, 2024

Prefer using :require :refer :all over :use in ns macro.

:refer :all is better than :use. However it is even better using refer explicitly like :refer [func-name].

I would like to suggest change it to

Prefer using :require :refer [func-name], in case of referring to all functions in a namespace, use :require :refer :all, instead of :use.

from clojure-style-guide.

film42 avatar film42 commented on May 14, 2024

But is there a solid argument to using :require :refer :all over :use? I mean, if they do the same thing, :use seems more readable.

Definition of use calling to refer:
https://github.com/clojure/clojure/blob/43cc1854508d655e58e377f84836ba128971f90c/src/clj/clojure/core.clj#L5727-L5736

from clojure-style-guide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.