News for hackers. Stuff that matters.
Re:Claude, change the "Add to Cart" button to blue by yonatan8070 on Wednesday September 09, 2026 @02:05PM (#49630729)
I've noticed them repeatedly casting the same value to the same type for now reason, like I'd have a Python function with a type-annotated int argument, and inside the function it would cast that int to int, and also at the call site, just in case it wasn't int enough.
Re:Claude, change the "Add to Cart" button to blue by metek on Wednesday September 09, 2026 @02:12PM (#49630864)
Blast radius minimized
Re:Claude, change the "Add to Cart" button to blue by prmph on Wednesday September 09, 2026 @07:20PM (#49635993)
Your fault for not using a statically strongly typed language, haha. It thinks a type annotation means nothing in Python, and maybe it is not wrong.