Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Functional > Better syntax f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 17 Topic 2768 of 2841
Post > Topic >>

Better syntax for a Standard ML derivative

by "David B. Benson" <dbenson@[EMAIL PROTECTED] > Feb 11, 2008 at 05:42 PM

SML syntax has been described as baroque.  I am interested in
suggestions to make it less baroquen.

Carl Hauser, over lunch, strongly suggests allowing ',' and ';'
in places these symbols are currently not allowed.  So one
can write

let in expr; end

if one wants.  Similarly, [a,b,c,] ought to be clear enough.

Replacing the keyword 'handle' by 'catch' seems wise.  But
this is not enough to treat the multiple ways that alternative
patterns may appear, leading to compiler errors.  One
solution, of course, is simply to put

let in ... end

around case expressions and code ending with a 'catcher',
i.e., handler code.  Not very pretty.  Another is to use

case ... esac

to delimit the case pattern alternatives.  But

catch ... hctac

is hideous.

While I am going to consider Haskell-style indentation, for
long code bodies some other solution is required, so the
indentation needs to be optional. (Also, some do not like it.)




 17 Posts in Topic:
Better syntax for a Standard ML derivative
"David B. Benson&quo  2008-02-11 17:42:18 
Re: Better syntax for a Standard ML derivative
Paul Rubin <http://phr  2008-02-11 18:24:30 
Re: Better syntax for a Standard ML derivative
torbenm@[EMAIL PROTECTED]  2008-02-19 18:17:38 
Re: Better syntax for a Standard ML derivative
"David B. Benson&quo  2008-02-12 11:02:55 
Re: Better syntax for a Standard ML derivative
Paul Rubin <http://phr  2008-02-12 12:55:35 
Re: Better syntax for a Standard ML derivative
Jon Harrop <usenet@[EM  2008-02-12 20:22:44 
Re: Better syntax for a Standard ML derivative
"David B. Benson&quo  2008-02-12 16:32:28 
Re: Better syntax for a Standard ML derivative
Paul Rubin <http://phr  2008-02-12 16:42:18 
Re: Better syntax for a Standard ML derivative
"David B. Benson&quo  2008-02-12 17:53:04 
Re: Better syntax for a Standard ML derivative
Donn Cave <donn@[EMAIL  2008-02-14 10:02:03 
Re: Better syntax for a Standard ML derivative
"David B. Benson&quo  2008-02-14 11:55:30 
Re: Better syntax for a Standard ML derivative
"David B. Benson&quo  2008-02-19 11:34:49 
Re: Better syntax for a Standard ML derivative
Paul Rubin <http://phr  2008-02-19 12:21:40 
Re: Better syntax for a Standard ML derivative
"David B. Benson&quo  2008-02-19 13:54:23 
Re: Better syntax for a Standard ML derivative
Paul Rubin <http://phr  2008-02-19 14:06:41 
Re: Better syntax for a Standard ML derivative
"David B. Benson&quo  2008-02-19 14:48:40 
Re: Better syntax for a Standard ML derivative
"David B. Benson&quo  2008-02-19 14:50:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun May 11 17:37:33 CDT 2008.