Talk:Named parameters: Difference between revisions

m (→‎REXX examples: answered some queries.)
 
(2 intermediate revisions by 2 users not shown)
Line 24:
 
: I don't see why it would be better to (just) omit REXX, especially as there are two solutions posted.   I thought the whole point of Rosetta Code is to show how other languages solve a particular task, even if the solutions may not be understood, idiomatic, or look pretty. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:59, 2 July 2014 (UTC)
 
::Hi Gerard. Thanks for taking the time to give me your answers. I asked because I was unsure if most REXX users seeing the solutions would consider them "too far from the mainstream" to consider using. Your explanation of the kind of documentation, and what programmers might routinely have to consider when reading/writing REXX have put put me straight on that. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 07:31, 3 July 2014 (UTC)
 
== Algol68 ==
 
The example does not compile on Algol 68 Genie 2.8:
<pre>
a68g Named_parameters.a68
28 print pet(())
1
a68g: error: 1: this vacuum cannot have row elements (use a REF [] UNION (OWNER, OPTBREED, OPTSPECIES,
OPTNAME) generator) (detected in collateral-clause starting at "(" in this line).
</pre>
But it works if the offending line is removed.
I cannot decide if this is a feature of algol 68 or a bug of the compiler.
 
: Curious. It looks like a bug in the compiler to me, not least because other changes I made to the source to see what may be going on also gave unexpected results. I'll contact Marcel.
 
: BTW, it doesn't "work" if the line is removed because although it compiles and runs, it doesn't print the defaults.
: --[[User:Brnikat|Brnikat]] ([[User talk:Brnikat|talk]]) 08:58, 11 August 2015 (UTC)
Anonymous user