<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Providing JavaScript Developers Helpful Type Errors When They Call Your ReScript Library Incorrectly	</title>
	<atom:link href="https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Sat, 22 May 2021 18:12:52 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html/comment-page-1#comment-255620</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Sat, 22 May 2021 18:12:52 +0000</pubDate>
		<guid isPermaLink="false">https://jessewarden.com/?p=6197#comment-255620</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html/comment-page-1#comment-255606&quot;&gt;Allain Lalonde&lt;/a&gt;.

Absolutely, there is no public/private enforcement here. It just has no types, and no helpful error messages when things explode. If a JS developer feels confident they know what they are doing, or is using TypeScript, or has runtime validation of types, then it is reasonably safe.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html/comment-page-1#comment-255606">Allain Lalonde</a>.</p>
<p>Absolutely, there is no public/private enforcement here. It just has no types, and no helpful error messages when things explode. If a JS developer feels confident they know what they are doing, or is using TypeScript, or has runtime validation of types, then it is reasonably safe.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Allain Lalonde		</title>
		<link>https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html/comment-page-1#comment-255607</link>

		<dc:creator><![CDATA[Allain Lalonde]]></dc:creator>
		<pubDate>Wed, 19 May 2021 16:11:09 +0000</pubDate>
		<guid isPermaLink="false">https://jessewarden.com/?p=6197#comment-255607</guid>

					<description><![CDATA[If it helps anyone here&#039;s a playground with the code entered:

https://rescript-lang.org/try?code=C4TwDgpgBAVgzgYQPYDsBmBLA5lAvFAbwCgooAiDAEzIC4oApOAOgDkBXAGw4EMAjDiE2AAeOMABOGFFgB8AGhLkw3OHADuScdTqNWnHv0Eixk6fMVkAFkjG0Gzdlz4ChoiVNkKAvkSIDgUAD63GyUGAH4ABRUNCYeclDKqhpadHHSCdZiae7SAJR4MoSKuhxIWJEEFNpUCdW0SeqalHVZwHZtXnlEPv5QIWERUJEAxqiYWAW4RcSk6uEjlvZ6ToZCSADyYMAYqKPj2AWzUAA+UCyo0NOKpLoAogAeKEzi3BhwEHfi4pqRZACaSDY4igY3Q2CglCQEDgUBQSACEAe72ATCggLYcIgEEoUGASESPwAblRoNwUFANrwYBARgFgJZuAEykgANZwEgcDCs6AEKAxKAAcgATABmQUJRopSh0QUgIHiRoSqBtWWWYDAMA0AD02o+4iJEHETDGAFtBVAvGRuqQzgBlJCmiCRJDbOBTGY3UhQPpUACy3BAvCuy0cBhc+K2Oz2ruAcAA2vUALo272kPpS5oBoMh3Rh5xGTbbXYoF1uxOZrRkFNe9MQAJtbPBvCh-QF9ZRktluOJtrV1NpjBoZad1BMd4XFDO-2B4NHWve+5PF5vD5fH7iSILtPVfmw+EBSgQTBT3GoKDy4Ggg44JDU2moqAASWAgthcDYYDANhxeIJze4OFUAAWggU1thAKB0lvYdLxBWooF4NgAkvKCIBQYA6AAEgIGccytBQ0zTAdvS8KAIA4D5+WHXRR2eCdLkiStKCbCB5yIxdmEeZ5XneT5vl+bdvTIZi9yAw9jykX8pAvBVr3BW97zpNEXzfKDP2-D5cXxRCySAlBQPA0AoNyLAEiQlCgTQjCoBw5jWIIoSSNIMiKKoocR2LMcGKnSJG1nNjig424uOXXi1wEzchNIKwbACd5xMhSTT35Ck4PkiYoDvGllOfV93w0n9tP-PT4QMsCIJM0wzMQ5DZMxD4bJw-z8LIQjgucy1yMo6APNorzniwetuOiFiAqmXB8DIMgguCpceNXfiNy3YLhIxeDcQS8lyKMyDoJUgIpxxWEdIAgJg2ANRsQpYV+hQXEAHZQUZV46SNOAEi5HkhTFZULPq6zMNs3Cxta9qOM61yetmjjglCcIVtWzzo0G4anlG1i8nBubmDopghuAEb7PG7GOP6lH8bR0sWrnUnvUhr0fBcnpfCAA

Found a bug this way: toOptions should have been toOption]]></description>
			<content:encoded><![CDATA[<p>If it helps anyone here&#8217;s a playground with the code entered:</p>
<p><a href="https://rescript-lang.org/try?code=C4TwDgpgBAVgzgYQPYDsBmBLA5lAvFAbwCgooAiDAEzIC4oApOAOgDkBXAGw4EMAjDiE2AAeOMABOGFFgB8AGhLkw3OHADuScdTqNWnHv0Eixk6fMVkAFkjG0Gzdlz4ChoiVNkKAvkSIDgUAD63GyUGAH4ABRUNCYeclDKqhpadHHSCdZiae7SAJR4MoSKuhxIWJEEFNpUCdW0SeqalHVZwHZtXnlEPv5QIWERUJEAxqiYWAW4RcSk6uEjlvZ6ToZCSADyYMAYqKPj2AWzUAA+UCyo0NOKpLoAogAeKEzi3BhwEHfi4pqRZACaSDY4igY3Q2CglCQEDgUBQSACEAe72ATCggLYcIgEEoUGASESPwAblRoNwUFANrwYBARgFgJZuAEykgANZwEgcDCs6AEKAxKAAcgATABmQUJRopSh0QUgIHiRoSqBtWWWYDAMA0AD02o+4iJEHETDGAFtBVAvGRuqQzgBlJCmiCRJDbOBTGY3UhQP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e72ATCggLYcIgEEoUGASESPwAblRoNwUFANrwYBARgFgJZuAEykgANZwEgcDCs6AEKAxKAAcgATABmQUJRopSh0QUgIHiRoSqBtWWWYDAMA0AD02o+4iJEHETDGAFtBVAvGRuqQzgBlJCmiCRJDbOBTGY3UhQPpUACy3BAvCuy0cBhc+K2Oz2ruAcAA2vUALo272kPpS5oBoMh3Rh5xGTbbXYoF1uxOZrRkFNe9MQAJtbPBvCh-QF9ZRktluOJtrV1NpjBoZad1BMd4XFDO-2B4NHWve+5PF5vD5fH7iSILtPVfmw+EBSgQTBT3GoKDy4Ggg44JDU2moqAASWAgthcDYYDANhxeIJze4OFUAAWggU1thAKB0lvYdLxBWooF4NgAkvKCIBQYA6AAEgIGccytBQ0zTAdvS8KAIA4D5+WHXRR2eCdLkiStKCbCB5yIxdmEeZ5XneT5vl+bdvTIZi9yAw9jykX8pAvBVr3BW97zpNEXzfKDP2-D5cXxRCySAlBQPA0AoNyLAEiQlCgTQjCoBw5jWIIoSSNIMiKKoocR2LMcGKnSJG1nNjig424uOXXi1wEzchNIKwbACd5xMhSTT35Ck4PkiYoDvGllOfV93w0n9tP-PT4QMsCIJM0wzMQ5DZMxD4bJw-z8LIQjgucy1yMo6APNorzniwetuOiFiAqmXB8DIMgguCpceNXfiNy3YLhIxeDcQS8lyKMyDoJUgIpxxWEdIAgJg2ANRsQpYV+hQXEAHZQUZV46SNOAEi5HkhTFZULPq6zMNs3Cxta9qOM61yetmjjglCcIVtWzzo0G4anlG1i8nBubmDopghuAEb7PG7GOP6lH8bR0sWrnUnvUhr0fBcnpfCAA</a></p>
<p>Found a bug this way: toOptions should have been toOption</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Allain Lalonde		</title>
		<link>https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html/comment-page-1#comment-255606</link>

		<dc:creator><![CDATA[Allain Lalonde]]></dc:creator>
		<pubDate>Wed, 19 May 2021 16:09:38 +0000</pubDate>
		<guid isPermaLink="false">https://jessewarden.com/?p=6197#comment-255606</guid>

					<description><![CDATA[Neat article!

Does this approach  mean that rescript developers will have to call the _audit function if they don&#039;t want to jump through the same hoops?

I think if you define _audit as the JS one, rescript can still use the nice name, and then using package.json&#039;s main or exports properties you can point it to a one line module that exposes _audit as audit:

```
// export-js.mjs
export {_audit as audit} from &#039;./Audit.bs.js&#039; // I think this is the syntax
```

Thoughts?]]></description>
			<content:encoded><![CDATA[<p>Neat article!</p>
<p>Does this approach  mean that rescript developers will have to call the _audit function if they don&#8217;t want to jump through the same hoops?</p>
<p>I think if you define _audit as the JS one, rescript can still use the nice name, and then using package.json&#8217;s main or exports properties you can point it to a one line module that exposes _audit as audit:</p>
<p>&#8220;`<br />
// export-js.mjs<br />
export {_audit as audit} from &#8216;./Audit.bs.js&#8217; // I think this is the syntax<br />
&#8220;`</p>
<p>Thoughts?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html/comment-page-1#comment-255593</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Sun, 16 May 2021 19:44:45 +0000</pubDate>
		<guid isPermaLink="false">https://jessewarden.com/?p=6197#comment-255593</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html/comment-page-1#comment-255453&quot;&gt;Szymon&lt;/a&gt;.

Yes, like TypeScript, you can distribute your .resi files if you wish. To JavaScript developers, much like TypeScript&#039;s .td files, they are sort of worthless UNLESS their IDE detects them. However, if you&#039;re a ReScript dev, yup, good stuff.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html/comment-page-1#comment-255453">Szymon</a>.</p>
<p>Yes, like TypeScript, you can distribute your .resi files if you wish. To JavaScript developers, much like TypeScript&#8217;s .td files, they are sort of worthless UNLESS their IDE detects them. However, if you&#8217;re a ReScript dev, yup, good stuff.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Szymon		</title>
		<link>https://jessewarden.com/2021/04/providing-javascript-developers-helpful-type-errors-when-they-call-your-rescript-library-incorrectly.html/comment-page-1#comment-255453</link>

		<dc:creator><![CDATA[Szymon]]></dc:creator>
		<pubDate>Tue, 27 Apr 2021 16:14:44 +0000</pubDate>
		<guid isPermaLink="false">https://jessewarden.com/?p=6197#comment-255453</guid>

					<description><![CDATA[Thanks for the post! I am aware that the whole idea of writing rescript is that you don’t use typescript anymore, but wouldn’t it be useful to generate ts types and ship them with your library? It won’t help with js runtime errors, but might work nicely with ide intellisense]]></description>
			<content:encoded><![CDATA[<p>Thanks for the post! I am aware that the whole idea of writing rescript is that you don’t use typescript anymore, but wouldn’t it be useful to generate ts types and ship them with your library? It won’t help with js runtime errors, but might work nicely with ide intellisense</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
