기타
Stackoverflow는 사랑입니다.
무하지
2022. 5. 9. 16:39
반응형
https://stackoverflow.com/questions/1132941/least-astonishment-and-the-mutable-default-argument
"Least Astonishment" and the Mutable Default Argument
Anyone tinkering with Python long enough has been bitten (or torn to pieces) by the following issue: def foo(a=[]): a.append(5) return a Python novices would expect this function to always
stackoverflow.com
https://stackoverflow.com/questions/36842158/arraytype-vs-type-in-typescript
Array<Type> VS Type[] in Typescript
As far as I know a property's type can be defined in two ways when it's an Array. property_name: type where type can be either Array<string>, Array<MyType>, etc. (e.g. let prop1: Arr...
stackoverflow.com
반응형