Re: about binding and dynamic vars

2015-03-21 Thread Colin Yates
http://stuartsierra.com/2013/03/29/perils-of-dynamic-scope is a good read around this subject. On 21 March 2015 at 21:47, coco wrote: > Hi guys, I'm curious about how work some codes with binding and dynamics > vars, for instance, in sqlkorma you define your db settings > > (defdb prod (postgres

about binding and dynamic vars

2015-03-21 Thread coco
Hi guys, I'm curious about how work some codes with binding and dynamics vars, for instance, in sqlkorma you define your db settings (defdb prod (postgres {:db "korma" :user "db" :password "dbpass"})) and then you can use other functions like this (select user (with address) (fields :firstName :

about binding and dynamic vars

2015-03-21 Thread coco
Hi guys, I'm curious about how work some codes with binding and dynamics vars, for instance, in sqlkorma you define your db settings (defdb prod (postgres {:db "korma" :user "db" :password "dbpass"})) and then you can use other functions like this