资源描述:
《Notes on Programming Standard ML of New Jersey》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、NotesonProgrammingStandardMLofNewJersey(version110.0.6)RiccardoPucellaDepartmentofComputerScienceCornellUniversityLastrevised:January10,2001iiPrefaceTheimpetusbehindthesenoteswasthedesiretoprovideacohesivedescriptionofStandardMLofNewJersey,aninteractivecompilerandenvironmentforStandardML.
2、Thegoalistoendupwithacompleteuserguidetothesystem,inclduingthelibraries,thetoolsandtheextensions,aswellasatutorialonhowtowrite“real”applications,centeredaroundtheuseofthemodulesystemandthecompilationmanager.Otherreasonsincludethedesiretoprovidehands-onexamplesofhowtousesomemaybepoorlyunde
3、rstoodfeaturesorfeatureswithaninterfacedifferentfromwhatonemaybeusedto.Examplesofsuchfeaturesincludesockets,theinputandoutputsubsystem,thereadersapproachtotextscanningandtheuseofcontinuationstohandlenon-localcontrol-flow.Allinall,thiswouldbearepositoryforsnippetsofSMLandSML/NJprogramminglo
4、re.ThesenotesarenotatutorialintroductiontoStandardML.Thereexistsexcel-lentintroductorymaterial,availablebothcommerciallyorfreelyovertheInternet.ThesenotescomplementthisliteraturebyfocusingontheStandardMLofNewJerseyenvironment.Thefirstpartofthesenotesdoesgivenanoverviewofthelanguage,butaqui
5、ckoneandwithouthighlightingsomeofthesubtletiesofthelanguage.BetterwritersthanIhavewrittenbetterintroductorymaterialandIurgeyoutoreadthosefirst.ReferencesaregiveninthechapternotesofChapter1.IgoinsomewhatmoredetailswhendescribingtheBasisLibrary,sincesomeoftheunderlyingideasarefundamentaltoth
6、eoverallprogrammingphilosophy.Unfor-tunately,thatchapterislong,boringandreadsmorelikeareferencemanualthanatutorial.Throughnessandprecisionatoddswithreadability.Withluck,enoughsamplecodeandtutorialmaterialisinterspersedtolightenthemood.Inthecourseofthenotes,Itaketheopportunitytodescribemor
7、eadvancedtopicstypicallynotcoveredinintroductorymaterial,suchassocketsprogramming,signalshandling,continuations,concurrency.Someofthesesubjectsarediscussedinadvancedpro-gramminglanguagecourses,whichnoteveryonehastakenorplantotake.Someofthesesubjectsarehardlydiscusse