Jump to content

Named parameters: Difference between revisions

Add SenseTalk implementation
m (→‎{{header|Phix}}: added a comment re named->positional mapping for js)
(Add SenseTalk implementation)
Line 1,847:
Doe
</lang>
 
=={{header|SenseTalk}}==
The <b>introduce</b> handler here includes a default value for <b>greeting</b>. Ordinarily, parameters are passed sequentially, but <code>by name</code> can be used to match values from a property list to the corresponding parameters of the handler that is being called.<lang sensetalk>introduce "Mary"
introduce "Pablo", "Hola"
introduce greeting:"Bonjour", name:"Brigitte" by name
 
to introduce name, greeting:"Hello"
put greeting && name
end introduce
</lang>
{{out}}
<pre>
Hello Mary
Hola Pablo
Bonjour Brigitte
</pre>
 
=={{header|Sidef}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.