<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 4/11/2023 1:39 PM, Gerald Klix via Cuis-dev wrote:<br>
<blockquote cite="mid:3827e6a1-ca75-576e-00f5-9531f67e7dad@klix.ch"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hi juan,<br>
<br>
You a right, I forgot to call the actual method, <br>
so it also missed its (side) effects, silly me.<br>
<br>
In nutshell the BDFL ruled:<br>
<br>
<ol>
<li><tt>#halt</tt> is enough and it should be used for
debugging.</li>
<li>If there are sends of <tt>#halt</tt> in production code,<br>
we just bail out (without a parachute).<br>
</li>
<li>If the aforementioned behavior is unwanted,<br>
the developer is free to catch the <tt>Halt</tt> exception<br>
and resume it.</li>
</ol>
I can live with that.<br>
<br>
I will move the break-related code to a breakpoint-package<br>
yet to be written.<br>
<br>
<br>
Best Regards,<br>
<br>
Gerald<br>
</blockquote>
<br>
Hi Gerald,<br>
<br>
I never intend to tell people how their dev environment or process
should be. But we need to find a common ground on what goes in the
base image.<br>
<br>
I'd think that breakpoints, with your new BreakingMethodWrapper is
the way to go for debugging. Many will keep using #halt, because
we're used to it. Then #break is an alternative, optional way.<br>
<br>
OTOH, I don't see much value in Halt being an exception. One way to
avoid having three different implementations "for the same thing"
could be:<br>
- #halt exits Cuis if isDevelopmentEnvironmentPresent = false, but
uses your #break mechanics if not. No longer an exception.<br>
- #break is a nop if isDevelopmentEnvironmentPresent = false, but
calls #halt otherwise.<br>
- Breakpoints could perhaps call #break, to avoid duplicating code.<br>
<br>
I think this would cover common cases, including your preference. It
would also keep code duplication and "uninteresting for most"
complexity to a minimum. It would make it impossible to do exception
handlers for #halt, though.<br>
<br>
Thoughts?<br>
<br>
Thanks,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>