[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Unique directions for Lua?
- From: Reuben Thomas <rrt@<a href="/cgi-bin/echo.cgi?mupsych.org">...</a>>
- Date: Wed, 6 Feb 2002 10:01:30 +0000 (GMT)
> My other pet hate is the way things get automatically
> cast to fit the situation.
Me too. I always do explicit casts to show what I mean, and automatic
coercion makes the VM (slightly) more complex than it needs to be. Even
for naive users, the error message that you've supplied a number where a
string was required or vice versa is easy to understand and easy to fix;
it's also easy to give some examples that shows why it's desirable not to
make this automatic. Where automatic conversion is desirable, it can be
done by the program (so that you don't need to put "tostring" and
"tonumber" in config files, for example).
http://sc3d.org/rrt/ | Analogy is a midwife, identity a murderer