Skip to content

Instantly share code, notes, and snippets.

@remexre
Last active October 7, 2016 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remexre/d555bd631084693df158d99c5eb4df21 to your computer and use it in GitHub Desktop.
Save remexre/d555bd631084693df158d99c5eb4df21 to your computer and use it in GitHub Desktop.
;; C-like
(defn int foo (int x str y)
...)
;; Rust-like
(defn foo:int (x:int y:str)
...)
;; CLOS-like
(defn (foo int) ((x int) (y str))
...)
; or
(defmethod (foo int) ((x int) (y str))
...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment