Skip to content

souenzzo/sciphi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sciphi

When pathom is everywhere

This is a experimental project that aims to explore the posibilies of use pathom in a language-wide level

Exploring

Start a REPL with dev profile

clj -A:dev -M -m br.com.souenzzo.sciphi

Define some functions in the REPL

(defn ^{:returns ::greet-prefix} greet-prefix
  []
  "hello")

(defn ^{:returns ::greet} greet
  [{::keys [greet-prefix username]}]
  (str greet-prefix " " username))

Call the function with some missing arguments and see pathom doing its magic

(greet {::username "sciphi"})
;; => "hello sciphi"
(greet {::greet-prefix "olá"
        ::username     "sciphi"})
;; => "olá sciphi"

About

When pathom is everywhere

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published