Implement restrictions
- [ ] Configure such that an error is thrown for restricted functions, probably by using sci
deny - [x] Show a warning for restricted functions - #14 solves this
To :deny use below example as reference
(eval-string "(first '(1 2 3 4))" {:deny '[inc dec first]})
@borkdude Any suggestion how to convert this into a quote for
Tried few things however not able to convert it.
(first `(~(mapv symbol ["inc" "dec" "last"])))
above expression give a vector with symbol. however want to convert this into a quoted collection for input to :deny.
Just (mapv symbol ...) should do the trick? Why are you using the backtick?
@borkdude Yes, it does. I over thought on this one and didn't realise that :deny is just needing a vector. Using the backpack I was trying to create a "quoted" statement to pass 🤦