The ClojureScript Om Next library uses static protocols . I have never seen this before, and I wonder if this is a special Om concept or the real part of the language. Here is a simplified snapshot of the code:
(deftype type static IProtocol (some-method [this] "val"))
What exactly does this do? (Entering it in REPL does not lead to any errors, so I am convinced that this is not Om specific).
deftype - , Clojure. Java, . java - , , , , . defui - , deftype, Classes - JavaScript, . , . , , , .
Source: https://habr.com/ru/post/1629291/More articles:Is there an easier way to map the properties of one object to another in ES6 / ES2015? - javascriptJava: recursively map iteration - javaДвунаправленная хэш-карта в ракетке - racketHow to remove all lines containing non-standard English letters using Notepad ++? - regexОшибка: использование неразрешенного идентификатора "ParseClientConfiguration" - iosjQuery hover stops working after a few seconds? - javascriptКак отображать двухсторонние графики с пакетом python networkX? - pythoncreate a loop for, in angular 2 from a template - angularCookies files not sent by the browser on one server with another port - httpSwift: how to disable integer overflow / overflow traps for a function - swiftAll Articles