<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: smlkrdrmlk</title><link>https://news.ycombinator.com/user?id=smlkrdrmlk</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Tue, 07 Jul 2026 09:26:55 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=smlkrdrmlk" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by smlkrdrmlk in "Counterexamples in Type Systems"]]></title><description><![CDATA[
<p>> It's not good, however, to name the functions (let's add: in global scope) f, g, h, f2, f3, gh, etc. just to avoid typing more characters. Instead, we choose a name which can be understood with as little additional context as possible.<p>Ah, you're not talking about the same things: you speak code, he speaks type theory.<p>You are completely correct on that: a good naming convention is better for readability, particularly with a large codebase.<p>So, let's try to find a compromise. It really depends on the size of the lexicon in the language considered: if all you have is 50 rules in your type theory, do you really need to give each of them a name fully describing its semantics? Of course you don't, so calling them inl1, sub2 etc. shouldn't be an issue, if the name can still act as a reminder of the rule meaning. In the same spirit, rules usually connect together few objects: a context, at most half a dozen of type variables which come up all the time in the rule set, a few operators. Maybe someone with some experience with functional programming would find it easier to understand. In fact, I think I pretty much paraphrased the quote above.<p>> Yes, but then I wouldn't need to work to understand the syntax, making the process of understanding the concepts easier.<p>I very much agree with that, but I also think that it's a question of training. In software engineering, people routinely devise DSLs, learn new languages to handle a specific problem or adapt to new working conditions. Once you get the hang of it, it should become easier.<p>Here's a small tip: Gamma in the greek alphabet corresponds to the letter C in the Roman one, so it sort of makes sense, if one's using Greek letters, to use Gamma for Context - like one would use Delta for difference in math, for instance. It's confusing at first, but it might also help in learning the Greek alphabet - again, same as what we have to go through in math classes.</p>
]]></description><pubDate>Tue, 25 May 2021 16:49:10 +0000</pubDate><link>https://news.ycombinator.com/item?id=27279180</link><dc:creator>smlkrdrmlk</dc:creator><comments>https://news.ycombinator.com/item?id=27279180</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=27279180</guid></item></channel></rss>