pub fn intern(&mut self, identifier: &str, value: &Value) -> Result<Value, NamespaceError> {
        match self.get(identifier) {
            Some(Value::Var(var)) => {
                var.update(value.clone());
                Ok(Value::Var(var.clone()))
            }
            Some(other) => Err(NamespaceError::ValueInNamespaceWasNotVar(other.clone())),
            None => {
                let var = var_with_value(value.clone(), &self.name, identifier);
                self.insert(identifier, &var);
                Ok(var)
            }
        }
    }
// NOTE: `value` will be wrapped in a `Value::Var` which is stored in this namespace
`value` will be wrapped in a `Value::Var` which is stored in this namespace
` value ` will be wrapped in a ` Value :: Var ` which is stored in this namespace
pub fn intern(&mut self, identifier: &str, value: &Value) -> Result<Value, NamespaceError> {
        match self.get(identifier) {
            Some(Value::Var(var)) => {
                var.update(value.clone());
                Ok(Value::Var(var.clone()))
            }
            Some(other) => Err(NamespaceError::ValueInNamespaceWasNotVar(other.clone())),
            None => {
                let var = var_with_value(value.clone(), &self.name, identifier);
                self.insert(identifier, &var);
                Ok(var)
            }
        }
    }
pub fn intern ( & mut self , identifier : & str , value : & Value ) -> Result < Value , NamespaceError > { match self . get ( identifier ) { Some ( Value :: Var ( var ) ) => { var . update ( value . clone ( ) ) ; Ok ( Value :: Var ( var . clone ( ) ) ) } Some ( other ) => Err ( NamespaceError :: ValueInNamespaceWasNotVar ( other . clone ( ) ) ) , None => { let var = var_with_value ( value . clone ( ) , & self . name , identifier ) ; self . insert ( identifier , & var ) ; Ok ( var ) } } }
NOTE: `value` will be wrapped in a `Value::Var` which is stored in this namespace
NOTE : ` value ` will be wrapped in a ` Value :: Var ` which is stored in this namespace
&mut self
identifier
&str
value
&Value