From 12c7cebb3869a65ed651b2beebdb8363f543dc3a Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 29 Apr 2018 19:45:04 -0700 Subject: [PATCH] Clarify comment --- schala-repl/src/language.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/schala-repl/src/language.rs b/schala-repl/src/language.rs index 5a55334..2c8d099 100644 --- a/schala-repl/src/language.rs +++ b/schala-repl/src/language.rs @@ -186,6 +186,12 @@ pub trait ProgrammingLanguageInterface { } } +/* a pass_chain function signature looks like: + * fn(&mut ProgrammingLanguageInterface, A, Option<&mut DebugHandler>) -> Result + * + * TODO use some kind of failure-handling library to make this better + */ + #[macro_export] macro_rules! pass_chain { ($state:expr, $($pass:path), *) => { @@ -193,8 +199,6 @@ macro_rules! pass_chain { }; } -//generates a function resulting in (for now) the return type of the last one -//but should in the future return a FinishedComputation #[macro_export] macro_rules! pass_chain_helper { ($state:expr, $input:expr, $pass:path $(, $rest:path)*) => {