4 ms·
That might be where it usually comes from, but that hasn't been my experience. My Python subcommunity groupthink was against type annotations for years, despite
by caturopath 5y ago
That might be where it usually comes from, but that hasn't been my experience. My Python subcommunity groupthink was against type annotations for years, despite the groupthink also saying that statically typed are better all things equal and most of the loudest folks having worked for some FAANG company.
Thinking that typing is good and buying that a pasted-on-after-the-fact typing system is good are different matters.
- yuy910616 5y agoIn my experience, it was quite jarring to see a python function with a bunch of : -> Union[int,str], Optional, Any, etc. Change is always hard.
- takeda 5y agoI actually don't understand Optional in that mix. "Optional" basically means the value can be "None". You typically use it like this "Optional[str]" which means the value is a string or "None".