Generally speaking, I like duck typing for function inputs, but not as much for function outputs (unless the functions are pure mathematics).
Centrist, progressive, radical optimist. Geophysicist, R&D, Planetary Scientist and general nerd in Winnipeg, Canada.
troyunrau.ca (personal)
lithogen.ca (business)
Generally speaking, I like duck typing for function inputs, but not as much for function outputs (unless the functions are pure mathematics).
Duck typing is the best if fully embraced. But it also means you have to worry just a little bit about clean failures once the project grows a little. I like this better than type checking relentlessly.
It also means that your test suite or doctests or whatever should throw some unexpected types around now and again to check how it handles ducks and chickens and such :)
The ideal result? LLMs are just early versions of much better things that come later.
The unlikely result: we develop a separate human curated internet somewhere, complete with verification that a human wrote every bit. Basically verifiable digital id and signing on everything. Maybe.
The probable result: the internet turns to shit as AIs are trained on content created by AIs.
Probably the money paid for whomever Alex Jones lost lawsuits against – so like Sandy Hook victims.