<p></p>
<p>Keyword (named) arguments in HS (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="684144768" data-permission-text="Title is private" data-url="https://github.com/ohrrpgce/ohrrpgce/issues/1156" data-hovercard-type="issue" data-hovercard-url="/ohrrpgce/ohrrpgce/issues/1156/hovercard" href="https://github.com/ohrrpgce/ohrrpgce/issues/1156">#1156</a>) would provide one way to skip over arguments, leaving them at their default value. An alternative would be a syntax to pass the default value of an argument. These two methods address many of the same cases, but also each are better for certain use cases.</p>
<p>Possible syntaxes:</p>
<pre><code>something (3, ?, ?, 4)
something (3, *, *, 4)
something (3, default, default, 4)
something (3, =def, =def, 4)
# The syntax used by FreeBASIC. A bit hard to read, and possibly dangerous,
# since previously HSpeak versions allowed spurious commas
something (3, , , 4)
</code></pre>
<p>When it comes to translating HS to languages like Lua or Squirrel the same problem and solution as in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="684144768" data-permission-text="Title is private" data-url="https://github.com/ohrrpgce/ohrrpgce/issues/1156" data-hovercard-type="issue" data-hovercard-url="/ohrrpgce/ohrrpgce/issues/1156/hovercard" href="https://github.com/ohrrpgce/ohrrpgce/issues/1156">#1156</a> applies.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1158">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZT3WDOSFSZYCH35OQDSCOR3JANCNFSM4QKSDH7Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZUAI7O2KGVPNFMFSCDSCOR3JA5CNFSM4QKSDH72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KG2ZUEA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1158",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1158",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>