sl_compiler::compile

Module destructure

Source

Structs§

Enums§

Functions§

  • When doing destructuring we need to turn ‘vec’ and ‘make-hash’ calls into the literal vectors and maps outside of execution. Takes a Value and either returns it or the literal vec or hash-map if it is a call to create one. Only works with Value::List for detection currently, this is what will come from the reader in these cases, may need to expand this to handle Value::Pair as well for macros (? TODO).