- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 201字
- 2021-07-03 00:11:54
Improvements to literals
This is another minor improvement to the C# language, but one that I'm sure will often be used by developers. One of my first jobs as a young man was working for a logistics company. These folks used to supply parts to Volkswagen, and the most critical parts were flown in by air freight from Germany or elsewhere. I will never forget the 9- and 12-digit shipping numbers the logistics people used to throw around in casual conversation. I wondered how they were able to remember literally hundreds of varying shipping numbers during the course of a year. After listening to them for a while, I noticed that they were saying these numbers with slight pauses after every third number. Even just looking at the 12-digit number 395024102833 is visually taxing. Imagine doing this several times a day, including memorizing the fast movers on the next shipment (I'm not even going to go into the printed shipment manifest, which was a nightmare). It is, therefore, easier to think of the number as 395-024-102-833 and this makes it easier to spot patterns. This is essentially exactly what C# 7.0 now allows developers to do with literals.
- 案例式C語言程序設計
- LabVIEW 2018 虛擬儀器程序設計
- Mastering Adobe Captivate 2017(Fourth Edition)
- CMDB分步構建指南
- 軟件項目管理(第2版)
- Spring Cloud Alibaba微服務架構設計與開發實戰
- Visual FoxPro程序設計教程
- NLTK基礎教程:用NLTK和Python庫構建機器學習應用
- Visual Basic程序設計實驗指導(第4版)
- Java Web開發技術教程
- SQL基礎教程(視頻教學版)
- Mastering Linux Security and Hardening
- Node學習指南(第2版)
- Java Web應用開發給力起飛
- Delphi開發典型模塊大全(修訂版)