alex-janss commented on issue #1268:
URL: https://github.com/apache/hamilton/issues/1268#issuecomment-2902101946

   It really would be nice to be able to add one function at a time, that would 
allow for a more declarative approach using decorators to incorporate each 
function explicitly into the dag. the current module mechanism seems hacky to 
me. 
   ```python
   dag = driver.Builder()
   
   @dag.add_function
   def A() -> int:
     ...
   
   @dag.add_function
   def B(A: int) -> float:
       ...
   
   @dag.add_function
   def C(A: int, B: float) -> float:
       ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to