Many many years ago I created my own JS -> OpenScad generator, so I defo agree the OpenScad language could be better. Though the engine worked well.
Putting it here in case anyone is curious: https://github.com/tasn/scadjs