Steve Wampler wrote:

Currently Unicon supports the following syntax for
method/procedure/initially parameters:

var[:type][:defaultvalue]

as it stands, this has a few idiosyncracies:



[snip]

Because of the ambiguity of x:y syntactically, both of these
(and related) issues are actually pretty hard to 'fix'.


Good observation.

However, if the syntax instead were (say):

var[:type][=defaultvalue]

then both could be handled,  since the test for checking
type in (for example):

procedure proc(x:integer, i:integer=1)




[snip]

Easy to take.

Comments? Not worth it? Too late? Generally a bad idea?


I think this has merit. I don't know about impact. I've not used the feature much so it's easy for me to vote for it. However, I suspect that it isn't a huge change.

Better syntax, for example, perhaps:

procedure foo(a(real):2*sin(1.0)) ?


No, definitely not. I liked the first suggestion better!

-Steve



David



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to