1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Introduction -->
<!--X-From-R13: fvybivpNfepr.ue ([vebfyni Evybivp) -->
<!--X-Date: from major.globecomm.net [207.51.48.5] by mx4.ibm.net id 863838401.23630&#45;1 Sat May 17 03:06:41 1997 -->
<!--X-Message-Id: 199705170313.FAA04818#regoc,srce.hr -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199705161745.KAA13570#xsvr3,cup.hp.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Introduction</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:silovic#srce,hr">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00515.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00518.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00507.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00552.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00517">Author</A>
&nbsp;|&nbsp;<A HREF="#00517">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00517">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Introduction</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Introduction</LI>
<LI><em>From</em>: <A HREF="mailto:silovic#srce,hr">silovic#srce,hr</A> (Miroslav Silovic)</LI>
<LI><em>Date</em>: Sat, 17 May 1997 05:13:24 +0200 (MET DST)</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
&gt; In &lt;<A HREF="msg00467.html">199705140820.KAA20287#regoc,srce.hr</A>&gt;, on 05/14/97 
&gt;    at 08:27 PM, silovic#srce,hr (Miroslav Silovic) said:
&gt; 
&gt; &gt;Okay, a few examples: One of the situations that happens often is a
&gt; &gt;function returning either result or 'I couldn't do it'. With typed
&gt; &gt;system, you need to return two values explicitely. With untyped, you
&gt; &gt;can return either a list of (integer) 0 (assuming that result is a
&gt; &gt;list).
&gt; 
&gt; This would seem to presume that all types are simple types and thus
&gt; there are no aggregate, complex, or user-defined types in your
&gt; language implementation.  Why not have the function call return a
&gt; structure or equivalent?  (cf ColdX's frobs (which I don't like BTW as
&gt; they seem a hacked design solution))

Returning a structure is kind of sucky - if failure is signaled, the
rest of the structure is meaningless, which is kinda sucky - in fact,
it's *much* less safe than the dynamic type (if you forget to check
the structure for failure, you'll continue to process unspeficied list,
getting unpredicted result, but *NO ERROR*).

As I said later in the post, there are strongly typed languages that
actually handle this right. But a programmer used to C++ type system
probably wouldn't think of any of the tricks that can be done. 

Of course, this is getting far away from the topic. :) Perhaps the
main thing is that neither I, nor many other people, want to think
about 'what will go into each variable' when it's far more natural
to thin about 'what *is* in each variable'. This is personal preferance,
of course, and my main point, as stated in the original post, was
that one should carefully (and I mean, *BLOODY* carefully) think
about the typing choice. The convenience of static typing IMHO can
be sacrificed, but only if you're ready to reap all the gains (i.e.
dynamically compile the MUD code into C or C++).

	Miro


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00552" HREF="msg00552.html">Re: [MUD-Dev] Introduction</A></strong>
<ul compact><li><em>From:</em> coder#ibm,net</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00507" HREF="msg00507.html">Re: [MUD-Dev] Introduction</A></STRONG>
<UL><LI><EM>From:</EM> clawrenc#cup,hp.com</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00515.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00518.html">Re: [MUD-Dev] Languages</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00507.html">Re: [MUD-Dev] Introduction</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00552.html">Re: [MUD-Dev] Introduction</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00517"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00517"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev]	Introduction</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00402" HREF="msg00402.html">Re: [MUD-Dev]	Introduction</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 12 May 1997, 21:50 GMT
</LI>
<LI><strong><A NAME="00425" HREF="msg00425.html">Re: [MUD-Dev]	Introduction</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 13 May 1997, 12:59 GMT
<UL>
<LI><strong><A NAME="00467" HREF="msg00467.html">Re: [MUD-Dev] Introduction</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Wed 14 May 1997, 22:44 GMT
<UL>
<LI><strong><A NAME="00507" HREF="msg00507.html">Re: [MUD-Dev] Introduction</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Sat 17 May 1997, 00:38 GMT
<UL>
<LI><strong><A NAME="00517" HREF="msg00517.html">Re: [MUD-Dev] Introduction</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Sat 17 May 1997, 10:06 GMT
<UL>
<LI><strong><A NAME="00552" HREF="msg00552.html">Re: [MUD-Dev] Introduction</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Sun 18 May 1997, 07:43 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00424" HREF="msg00424.html">Re: [MUD-Dev]	Introduction</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 13 May 1997, 13:04 GMT
<UL>
<LI><strong><A NAME="00437" HREF="msg00437.html">Re: [MUD-Dev] Introduction</A></strong>, 
Dan Root <a href="mailto:dar#thekeep,org">dar#thekeep,org</a>, Wed 14 May 1997, 01:27 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00477" HREF="msg00477.html">Re: [MUD-Dev]	Introduction</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 15 May 1997, 22:04 GMT
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>