舉報

會員
Learn Type:Driven Development
Type-drivendevelopmentisanapproachthatusesastatictypesystemtoachieveresultsincludingsafetyandefficiency.Typesareusedtoexpressrelationshipsandotherassumptionsdirectlyinthecode,andtheseassumptionsareenforcedbythecompilerbeforethecodeisrun.LearnType-DrivenDevelopmentcovershowtousethesetypesystemstocheckthelogicalconsistencyofyourcode.Thisbookbeginswiththebasicideabehindtype-drivendevelopment.You’lllearnaboutvalues(orterms)andhowtheycontrastwithtypes.Asyouprogressthroughthechapters,you’llcoverhowtocombinetypesandvaluesinsidemodulesandbuildstructuredtypesoutofsimplerones.You’llthenunderstandhowtoexpresschoicesoralternativesdirectlyinthetypesystemusingvariants,polymorphicvariants,andgeneralizedalgebraicdatatypes.You’llalsogettogripswithsumtypes,buildsophisticateddatatypesfromgenerics,andexplorefunctionsthatexpresschangeinthetypesofvalues.Intheconcludingchapters,you’llcoveradvancedtechniquesforcodereuse,suchasparametricpolymorphismandsubtyping.Byendofthisbook,youwillhavelearnedhowtoiteratethroughatype-drivenprocessofsolvingcodingproblemsusingstatictypes,togetherwithdynamicbehavior,toobtainmoresafetyandspeed.
最新章節(jié)
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- Summary
- Running the tests
- Writing our first tests
- Creating our final package and setting up for tests
品牌:中圖公司
上架時間:2021-07-02 12:37:59
出版社:Packt Publishing
本書數(shù)字版權(quán)由中圖公司提供,并由其授權(quán)上海閱文信息技術(shù)有限公司制作發(fā)行