In this case, I prefer having a nice, ugly name with something like unsafe or unchecked in it. And, I want it at the point the unsafe/unchecked operation is being done. For production code, it's important for whoever wants to understand (i.e., maintain) it later to know the intent and its implications. Changing between them (generally) should not be a trivial decision.<br>
<br>Doug<br><br><div class="gmail_quote">On Mon, Sep 7, 2009 at 12:11 PM, Faré <span dir="ltr"><<a href="mailto:fahree@gmail.com">fahree@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Maybe it's better to keep the very same name as the safe operation,<br>
and let whoever imports it choose a different prefix. The immediate<br>
benefit is that switching from safe to unsafe becomes trivial, which<br>
is great for developing and testing in safe mode but delivering and<br>
running in unsafe mode.<br>
<br>
What will be interesting is to see if TypedScheme modules allow to<br>
squeeze extra performance by expanding to unsafe operations.<br>
<br>
[ François-René ÐVB Rideau | Reflection&Cybernethics | <a href="http://fare.tunes.org" target="_blank">http://fare.tunes.org</a> ]<br>
If it's not worth doing right, it's not worth doing. -- Scott McKay<br>
<br>
<br>
<br>
<br>
2009/9/7 Carl Eastlund <<a href="mailto:carl.eastlund@gmail.com">carl.eastlund@gmail.com</a>>:<br>
<div><div></div><div class="h5">> On Mon, Sep 7, 2009 at 1:59 AM, Doug<br>
> Williams<<a href="mailto:m.douglas.williams@gmail.com">m.douglas.williams@gmail.com</a>> wrote:<br>
>> One other thing that is really just semantics.<br>
><br>
> Actually, that's just syntax. ;)<br>
><br>
> On this list, semantics is the important stuff.<br>
><br>
>> Would it be better to call<br>
>> the operations 'unchecked-<whatever>' instead of 'unsafe-<whatever>'?<br>
>> Generally, we are calling the function because we know it is safe to avoid<br>
>> some constraint check - not because it is unsafe. Just a nit.<br>
><br>
> --Carl<br>
</div></div></blockquote></div><br>