资源描述:
《[Clojure.Programming(2012.3)].Chas.Emerick.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ClojureProgrammingChasEmerick,BrianCarper,andChristopheGrandBeijing•Cambridge•Farnham•Köln•Sebastopol•TokyoClojureProgrammingbyChasEmerick,BrianCarper,andChristopheGrandCopyright©2012ChasEmerick,BrianCarper,andChristopheGrand.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’R
2、eillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:(800)998-99
3、38orcorporate@oreilly.com.Editors:MikeLoukidesandJulieSteeleIndexer:FredBrownProductionEditor:TeresaElseyCoverDesigner:KarenMontgomeryCopyeditor:NancyReinhardtInteriorDesigner:DavidFutatoProofreader:LinleyDolbyIllustrator:RobertRomanoApril2012:FirstEdition.RevisionHistoryfortheFirstEdition:2
4、012-03-28FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449394707forreleasedetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.ClojureProgramming,theimageofapaintedsnipe,andrelatedtradedressaretrademarksofO’ReillyMedia,
5、Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofth
6、isbook,thepublisherandauthorsassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-39470-7[LSI]1332955528TableofContentsPreface.....................................................................xi1.DowntheRabbitHole.......
7、............................................1WhyClojure?1ObtainingClojure3TheClojureREPL3No,ParenthesesActuallyWon’tMakeYouGoBlind6Expressions,Operators,Syntax,andPrecedence7Homoiconicity9TheReader12ScalarLiterals13Comments18WhitespaceandCommas19Co