@CodyGray Not “complicated” in a bad way but just more challenging. I just don’t want to deal with “how do you ask for user input” or “print something in a for loop” any more…
@CodyGray I was very shortly baited by custom Discord roles based on activity. So I thought I had to become active there to get better roles. – I decided it wasn’t worth the effort afterwards.
@AndrasDeak Yeah, I joined a large C# discord some time ago and managed to spend a single day dealing with lots of people asking very basic questions in four separate channels. That was just too much so I stopped doing that immediately :D
I think we need to consider the two lives of this room: The old one, and the one after it was rescued by @JonClements. So we have two eras: BC and AD – Before jon Clements and After jon Did rescue the room.
Next level: Code golf: Write an expression that returns that a string that contains a valid Python expression that evaluates to 1, without using any literal values, such as integers, bools, floats, strings, lists, etc.
Okay, I’m apparently very rusty… My original timing (using a custom type) didn’t make sense here: stackoverflow.com/posts/57004399/revisions – Can anyone see what I am missing?
I’d suggest you to attempt this using static analysis at authoring time (i.e. when the code is being written). You mention in your meta question, that you need this for optimization but all your attempts will negatively impact this a lot more. And your approach so far skips valid use cases (e.g. passing the return value to another function) and is also very easy to circumvent if you want to (e.g. myfunc() // =). This simply cannot be done at runtime from within JavaScript.