<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Maybe somebody should implement the smart case…
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">http://www.cs.nott.ac.uk/~psztxa/talks/shonan11.pdf<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Agda <agda-bounces@lists.chalmers.se> on behalf of Andrew Pitts <Andrew.Pitts@cl.cam.ac.uk><br>
<b>Date: </b>Tuesday, 30 August 2022 at 10:48<br>
<b>To: </b>agda@lists.chalmers.se <agda@lists.chalmers.se>, Miëtek Bak <mietek@bak.io><br>
<b>Subject: </b>Re: [Agda] Path to success with Agda?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
> On 30 Aug 2022, at 09:29, Miëtek Bak <mietek@bak.io> wrote:<br>
> <br>
>> On 30 Aug 2022, at 09:58, Andrew Pitts <Andrew.Pitts@cl.cam.ac.uk> wrote:<br>
>> <br>
>> So I wanted to mention the humble “case” expression, which functional programmers can more easily relate to, maybe. It’s less powerful that “with”, but sometimes works (wrt the not typechecking thing) when “with” won’t.<br>
> <br>
> It would be interesting to see an example in which `case` works and `with` does not.<br>
<br>
I have some and will try to extract them from their context when I get a mo. However, I should qualify what I said:<br>
<br>
"but sometimes [case] works (wrt the not typechecking thing) when “with” won’t”<br>
<br>
What I really meant was that, at the time, it was easier for me to use a “case" expression than to figure out how to still use “with” by moving lemmas to the top level, generalizing arguments a bit more, etc, etc. I expect there’s always a way with “with”.
<br>
<br>
And if you are heavily in to using “rewrite” (“with” disguised), then I guess “case” is not helpful.<br>
<br>
Andy<br>
<br>
_______________________________________________<br>
Agda mailing list<br>
Agda@lists.chalmers.se<br>
<a href="https://lists.chalmers.se/mailman/listinfo/agda">https://lists.chalmers.se/mailman/listinfo/agda</a><o:p></o:p></p>
</div>
</div>
<PRE>
This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please contact the sender and delete the email and
attachment.
Any views or opinions expressed by the author of this email do not
necessarily reflect the views of the University of Nottingham. Email
communications with the University of Nottingham may be monitored
where permitted by law.
</PRE></body>
</html>