"be consistent" PerlMonks

### Re: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)

by educated_foo (Vicar)
 on Aug 12, 2007 at 19:03 UTC ( #632095=note: print w/replies, xml ) Need Help??

Actually, this is a good illustration of Haskell's strengths: given a contrived problem involving lists, there is an obscurely-named library function to solve it in one line.
• Comment on Re: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)

Replies are listed 'Best First'.
Re^2: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
by BrowserUk (Pope) on Aug 13, 2007 at 00:12 UTC

The Vatican just called and want to commission you to write the software for their soon to be released answer to the current vogue for more and more violent and Satanic video games--The God in a Box console. They antisipate huge sales amongst followers once the Pope edicts that all good Catholic homes should have one.

There is one caveat. To ensure that there are no hidden sex scenes or other inappropriate Easter eggs, they have decreed that all games for this new omni-threaded processor console shall be reviewed, at the source level, by a senior member of the Vatican Council.

To facilitate this review, the source code must be written in Latin. What you gonna do? Does Haskell have an appropriate parser available?

Thanks to theDamian, Perl does!

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
Re^2: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
by Anonymous Monk on Nov 07, 2008 at 17:06 UTC
I remember suggesting that it would be nice if Perl 6 would allow a scalar to be treated syntactically as a list of chars: \$scalar3 = 'x'; etc. It would allow a single routine to be polymorphic to arbitrary lists and scalars and simplify the above, but I guess it wouldn't work for many other cases. And funny thing, ruby gives me idea on adding some for my handmade jewelry. lol

Create A New User
Node Status?
node history
Node Type: note [id://632095]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2021-04-11 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?

No recent polls found

Notices?