I didn't think it through. Blockchain tech wouldn't be needed. What I'm thinking is more of where git and StackOverflow meet as a meta language for C++. For example
@sum(1, 2, 3); // pulls from the public function for summation
The programming could be done with aliases (@ or some tag). Everything would have to be bootstrapped, so that it can only build from the pieces that are already available instead of calling sub-functions that won't exist for the end user.