[compare] c# campare with java
Alice52 opened this issue · 0 comments
Alice52 commented
c# advantage
- extension: static and this
- method args default value
- variable inference
- linq
- readonly and const: runtime constants and compile constants
- out, it's means more than one return[recommend].
- property { set; get; }
- 泛型
- async/await
- 模式匹配: https://www.cnblogs.com/cgzl/p/11673661.html
- 可空引用类型:
? & NullableReferenceTypes & TreatWarningsAsErrors
https://www.cnblogs.com/lwqlun/p/10258586.html - 元组:
Tuple & ValueTuple
: https://www.cnblogs.com/unity3ds/p/11641582.html - 异步流: https://www.cnblogs.com/ms27946/p/Async-Stream-In-CSharp-8.html
- lambda
java
- !=柯里化: 实现不了 Extension
- overload default value
- JDK10
- JDK8 stream
- N/A
- define truple
- lombok
- 泛型不好, 很不好
- CF
- 没有
- 没有
- https://www.cnblogs.com/gxhunter/p/11183415.html
https://blog.csdn.net/zzh920625/article/details/80462379
reference
- https://blog.csdn.net/darkjazz11/article/details/82222876
- https://www.csdn.net/gather_23/MtTaUg3sMDU0LWJsb2cO0O0O.html
- https://www.cnblogs.com/lwqlun/p/10258586.html
- https://www.cnblogs.com/ms27946/p/Async-Stream-In-CSharp-8.html
- https://www.cnblogs.com/cgzl/p/11673661.html
- https://www.cnblogs.com/gxhunter/p/11183415.html
- https://blog.csdn.net/zzh920625/article/details/80462379
- https://www.cnblogs.com/unity3ds/p/11641582.html