I noticed in tut Clojurescript 101 that you can use closure classes, for example:
(ns async-tut1.core (:import [goog.net XhrIo]))
But there is a note that says:
Note: the import is for this use case only, you never use it with ClojureScript libraries
What does it mean? As I understand it, you should not import classes this way. I'm right? If so, how would you do it? Many thanks.
If you want to import Closure classes, you use import, if you import functions or vars, then you use require or use:
(ns async-tut1.core (:require [goog.events :refer [listen] :as ev]) (:import [goog.net XhrIo]))
, import - ( google).
import
Source: https://habr.com/ru/post/1541417/More articles:vuforia AR SDK - cannot play video at url - javaCannot find sys / cdefs.h when creating V8 for Android - v8Parsing a string into a hash - regexHow to resize LinearLayout from code - androidะัะตัะฐัะธั ัะตัะตะท ัะฐะนะปั - pythonIs there a way to allow \ w inside character sets in regex vim? - vimOrder Alternative - regexXamlCompiler WMC1006 error: cannot resolve assembly or Windows metadata file 'XXX.YYY.ZZZ' - c #Compilation problems in OpenGL code with g ++ - c ++Android StreetView checks if there is any view for a given location - androidAll Articles