News for hackers. Stuff that matters.
Re:RFC: Intent to Ship React 18 by dmitriid on Friday March 25, 2022 @01:00PM (#30804575)
> is just a normal function that

you keep showing isn't a normal function :)

> Like why do you want so bad for hooks to be weird?

I don't want them to be weird. They are weird already. https://news.ycombinator.com/item?id=30801466

Re:RFC: Intent to Ship React 18 by Spivak on Friday March 25, 2022 @01:39PM (#30805064)
I guess we have very different definitions of "semantics" then. Rspec is wild but it's still plain Ruby. I'll give you that it's not idiomatic and it comes with some unusual restrictions on its use but libraries have been doing forever, I guess I'm just used to "you have to call this function to init the lib", "this function has to come after this", "you must call the cleanup macro here", "importing this lib monkey-patches these classes."