From 87f243b16a459737c0af9a6ebc23952f2520d59d Mon Sep 17 00:00:00 2001 From: Ray Miller Date: Sun, 5 Jan 2025 19:19:28 +0000 Subject: [PATCH] Some notes on vars --- tryme.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tryme.scm b/tryme.scm index 91511ed..8185bd7 100644 --- a/tryme.scm +++ b/tryme.scm @@ -5,6 +5,21 @@ (ordo task) (ordo handler)) +;; TODO: Consider how vars might be used in task args Currently a task argument +;; can be a context refrence, for example we could write: +;; +;; (install-directory (context-ref 'base-dir)) +;; +;; but there's no way to nest these, so we this will not work: +;; +;; (install-file (file-name-join (context-ref 'base-dir) "foo")) +;; +;; Maybe we could implement something like: +;; +;; (install-file (context-fn (file-name-join (context-ref 'base-dir) "foo"))) +;; +;; where context-fn is some syntax that returns (lambda (ctx) ...) + (define test-play (play "Test play" #:connection (local-connection)