Is there a simple way to know, on which vars a specific parsed form depends? Say, “if these vars existed, this form would run”.
@timur058 Can you give an example?
@timur058 I’m not sure either but I see what you want and agree that it’s important. If you had this, you could pre-evaluate all of the cells in the notebook
in proper order when it’s loaded
(as you say in the comment, duh 🙂 )
looks like a problem we need to solve!
@sritchie09 Is this something sci should solve or is this some topological sort problem that should be solved in a sci-using app? And why not use namespaces for this? The namespace system already solves this problem
@borkdude my guess is that what @timur058 wants to enable is the ability to define “cells” of some notebook out of order, and as long as everything COULD be sorted, then great. I don’t think it’s an sci-level problem since this would have to happen before feeding the forms into sci
if you use namespaces like:
(ns cell5 (:require [cell1]))
this would work, and you could artificially prepend these namespace things in front of the expressionsbrilliant, I like it
Does this have to do with allow/deny settings?
Usually this is done through namespaces and requires