tag:blogger.com,1999:blog-8383004232931899216.post1056921679004284462..comments2023-11-01T11:47:57.046-04:00Comments on Designing ParaSail, a new programming language: Everything in a func?Tucker Tafthttp://www.blogger.com/profile/08866496974237052847noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8383004232931899216.post-75385171170493218882011-07-20T09:09:52.684-04:002011-07-20T09:09:52.684-04:00I think the use of "op" rather than &quo...I think the use of "op" rather than "func" does clarify things, and since operators have special significance to the syntax, it seems worth distinguishing them. Most languages that allow user-defined operators have some sort of unique syntax for declaring them, and just using quotes is perhaps more subtle than necessary.Tucker Tafthttps://www.blogger.com/profile/08866496974237052847noreply@blogger.comtag:blogger.com,1999:blog-8383004232931899216.post-75702725649969191292011-07-20T07:03:14.167-04:002011-07-20T07:03:14.167-04:00I just realized that in Ada, the only syntax diffe...I just realized that in Ada, the only syntax difference between operators and functions is the presence of quotes (I knew that before, I just didn't think of it in this context). So there is precedence for that, and it's never bothered me.<br /><br />It does seem that the presence of "op" instead of "func" makes things clearer. But I could go either way.<br /><br />Sorry to partially flip-flop on you :(.Stephehttps://www.blogger.com/profile/07193814252205500600noreply@blogger.comtag:blogger.com,1999:blog-8383004232931899216.post-67061905805162756262011-07-18T12:56:15.015-04:002011-07-18T12:56:15.015-04:00Ok, we have settled on "func" for functi...Ok, we have settled on "func" for functions and procedures and "op" for operators. The latest ParaSail reference manual incorporating these changes has been posted to the Google group:<br /><a href="http://groups.google.com/group/parasail-programming-language" rel="nofollow">http://groups.google.com/group/parasail-programming-language</a>Tucker Tafthttps://www.blogger.com/profile/08866496974237052847noreply@blogger.comtag:blogger.com,1999:blog-8383004232931899216.post-62122478533922956062011-07-15T08:07:55.729-04:002011-07-15T08:07:55.729-04:00> For operators, I'd prefer something more ...> For operators, I'd prefer something more than just the presence of quotes. <br /><br />Any suggestions? e.g.:<br /><br /> op "*"(Left, Right : Integer) -> Integer;<br /> oper "*"(Left, Right : Integer) -> Integer;<br /> operator "*"(Left, Right : Integer) -> Integer;<br /><br />Thanks,<br />-TuckTucker Tafthttps://www.blogger.com/profile/08866496974237052847noreply@blogger.comtag:blogger.com,1999:blog-8383004232931899216.post-46815290392421596962011-07-15T07:28:48.526-04:002011-07-15T07:28:48.526-04:00In user code, "func" for either "fu...In user code, "func" for either "function" or "procedure" works for me; Ada uses "subprogram" in a similar way in the manual (not the syntax).<br /><br />For operators, I'd prefer something more than just the presence of quotes.Stephehttps://www.blogger.com/profile/07193814252205500600noreply@blogger.comtag:blogger.com,1999:blog-8383004232931899216.post-24683106736569302682011-07-14T08:41:10.701-04:002011-07-14T08:41:10.701-04:00I suppose the first question is whether to use a s...I suppose the first question is whether to use a single term for all three kinds of operations. The second question is what term to use. <br /><br />Eiffel doesn't really use the term "feature" in this way. They instead rely on the presence of "()" to indicate they are defining an operation as opposed to a component, and use "feature" as a dividing line to separate the class header from the class definitions.<br /><br />One explicit goal in ParaSail has been to use terms that are in wide use in multiple languages, and hopefully easily recognizable and intuitive, rather than relying on new or rarely used terminology.<br /><br />Unfortunately, these sorts of things are very subjective...Tucker Tafthttps://www.blogger.com/profile/08866496974237052847noreply@blogger.comtag:blogger.com,1999:blog-8383004232931899216.post-8370450602022509022011-07-14T01:22:21.290-04:002011-07-14T01:22:21.290-04:00Why not using `feature' which is a terminology...Why not using `feature' which is a terminology used in Eiffel for the past 25 years, or just simply `routine'.Emmanuel Stapfhttps://www.blogger.com/profile/07180445678206791144noreply@blogger.com