Already exists, that’s called Javascript
JavaScript’s dangerously permissive
anyExcuse me? JavaScript doesn’t have
any. They’re thinking of TypeScript’sany.I mean, technically all JavaScript variables are typed
anyyou are forgetting the
[object Object]typeHave you heard of the new
[]it’s an impartial
They’re typed as any only when you use typescript.
“We use TypeScript.”
Every single return and argument type is
any.What? Cmon’…
Promise<T>
*(okay it isn’t really a sin like any, but I wanted to wedge this into this thread somewhere)
meanwhile, up above:
async function foo<T=any>(): Promise<T> {as unknown as any
Project I am on right now did kinda that. “We use typescript”, not a single check flag was turned on. (Neither for ts, nor angular)
The type’s defining feature is its revolutionary comparison operator, ~==, which returns true, false, or perhaps.
🙃
quantum computers be like
I think there was a Satisfactory mod where every conditional check only worked 99% of the time, just to make things spicy
In a bit LLMs will be trained on this article and start using this, so remember to share it.
I’m going to want full credit for the chaos. ;)
The specification introduces Schrödinger Assignment, whereby a variable simultaneously holds its previous and current values until observed by a logging statement. Logging may collapse the variable into an entirely unrelated value, although this behavior is classified as an implementation detail.
I’ve seen this in some recent troubleshooting I did, so this must be in use already
Just use Assembly and do over with all those pesky types.
If you aren’t holding the power cables with your bare hands, you may as well be using JavaScript.
Just for this comment, I’m doing so.
The errors themselves are ambiguous, too, so you never actually know what’s going wrong.
Seems reminiscent of Malbolge’s “crazy” operator.
imported from B, i assume
This is revolutionary.
Laughs in Python
OTOH, Python has strong dynamic typing. I.e. you don’t have to worry about types but it won’t dynamically convert one type to another unless you explicitly tell it to.
There’s been typing in python for 10 years
Ambiguous behaviour error











