Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7545751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:00:42+00:00 2026-05-30T09:00:42+00:00

When using clojure.string, I receive the following warnings WARNING: replace already refers to: #’clojure.core/replace

  • 0

When using clojure.string, I receive the following warnings

WARNING: replace already refers to: #'clojure.core/replace in namespace: tutorial.regexp, being replaced by: #'clojure.string/replace
WARNING: reverse already refers to: #'clojure.core/reverse in namespace: tutorial.regexp, being replaced by: #'clojure.string/reverse

my clojure script is:

(ns play-with-it
  (:use [clojure.string]))

Is there any way to fix those warnings?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:00:43+00:00Added an answer on May 30, 2026 at 9:00 am

    Yes, switch to

    (ns play-with-it
      (:require [clojure.string :as string]))
    

    and then say e.g.

    (string/replace ...)
    

    to call clojure.string‘s replace function.

    With :use, you bring in all Vars from clojure.string directly into your namespace, and since some of those have names clashing with Vars in clojure.core, you get the warning. Then you’d have to say clojure.core/replace to get at what’s usually simply called replace.

    The clash of names is by design; clojure.string is meant to be required with an alias like this. str and string are the most frequently chosen aliases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Based on the Embedding section of http://github.com/technomancy/swank-clojure , I'm using the following to test
Consider the following: using System; using System.Dynamic; namespace DynamicTest { class Program { static
I am building some software using Clojure as a backend, and I'd like to
I'm calling the twitter4j library using Clojure like so: (def twitter (. (TwitterFactory.) getInstance))
I'm happily using swank-clojure, installed via elpa. But I'd like to do some work
I'm using Emacs with clojure mode and slime connected to a swank server produced
I typed this into Clojure REPL (using the enclojure Netbeans plugin): user=> hello, world
I'm using Maven in the context of another build-tool (leiningen for Clojure, but this
I'd like to be able to define lambdas using common Lisp syntax, in Clojure.
I'm using Clojure, so this is in the context of Java regexes. Here is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.