Semicolons: mostly unnecessary?
bearophile
bearophileHUGS at lycos.com
Thu Oct 22 01:40:42 PDT 2009
Walter Bright:
> Adam D. Ruppe wrote:
>
> Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly
> doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus
> aparsinganchorperiodsinasentencearentstrictlynecessarywecould
> putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext
> Butthatsfairlyobviouslymuchharderthanusingperiodstofollowwhere
> youareSemicolonsarethesamething
>
> (Fixed that for you!)
Having no spaces is not comparable to having no semicolons, because newlines are kept.
Better to have a little more complex parser than putting the burden of adding the correct semicolons on the programmers.
Bye,
bearophile
More information about the Digitalmars-d
mailing list