From 1617910ad342a55762f3ddabb975849d843cff85 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Tue, 1 Apr 2014 23:12:33 -0500 Subject: All: remove slurp-do, use str around slurp instead. --- php/step7_quote.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'php/step7_quote.php') diff --git a/php/step7_quote.php b/php/step7_quote.php index 2ccd130..b035be0 100644 --- a/php/step7_quote.php +++ b/php/step7_quote.php @@ -133,13 +133,10 @@ _ref('eval', function($ast) { _ref('slurp', function($f) { return file_get_contents($f); }); -_ref('slurp-do', function($f) { - return "(do " . file_get_contents($f) . ")"; -}); // Defined using the language itself rep("(def! not (fn* (a) (if a false true)))"); -rep("(def! load-file (fn* (f) (eval (read-string (slurp-do f)))))"); +rep("(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \")\")))))"); if (count($argv) > 1) { for ($i=1; $i < count($argv); $i++) { -- cgit v1.2.3