内容简介
Introducesthefundamentalsofprogramminglanguageswithinformationonsuchtopicsasfunctions,records,datatypes,programmingwithlists,exceptions,objects,andtrees.,Weveknownaboutalgorithmsformillennia,butweveonlybeenwritingc-puterprogramsforafewdecades.Abigdi?erencebetweentheEuclideanorEratosthenesageandoursisthatsincethemiddleofthetwentiethcentury,weexpressthealgorithmsweconceiveusingformallanguages:programminglanguages.Computerscientistsarenottheonlyoneswhouseformallanguages.-tometrists,forexample,prescribeeyeglassesusingverytechnicalexpressions,??suchasOD:-1.25(-0.50)180OS:-1.00(-0.25)180,inwhichtheparent-sesareessential.Manysuchformallanguageshavebeencreatedthroughouthistory:musicalnotation,algebraicnotation,etc.Inparticular,suchlanguageshavelongbeenusedtocontrolmachines,suchasloomsandcathedralchimes.However,untiltheappearanceofprogramminglanguages,thoselanguageswereonlyoflimitedimportance:theywererestrictedtospecialised?eldswithonlyafewspecialistsandwrittentextsofthoselanguagesremainedrelativelyscarce.Thissituationhaschangedwiththeappearanceofprogrammingl-guages,whichhaveawiderrangeofapplicationsthantheprescriptionofe-glassesorthecontrolofaloom,areusedbylargecommunities,andhaveallowedthecreationofprogramsofmanyhundredsofthousandsoflines.