I wrote a class which when instantiated, resulted in a callable object with a valueOf string.
The result was a very slick and intuitive interface for a library with 0 boilerplate.
The thing that bugs me is that I'm totally fine with this in the context of it's usage, that the CSS equivalent of what I was making had similar ergonomics. Is it okay to use magic JavaScript that would otherwise be strange if your mirroring an existing interface from another language?
What is the line between complexity and innovation?