Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^4: Perl 6 shocking revelations #1

by John M. Dlugosz (Monsignor)
on Apr 30, 2008 at 18:25 UTC ( #683756=note: print w/replies, xml ) Need Help??

in reply to Re^3: Perl 6 shocking revelations #1
in thread Perl 6 shocking revelations #1

I assumed that Perl 6 has some sort of type system, and it is approved at some level. So it didn't occur to me to read it as 'this paper is a proposal to change the Perl 6 type system.'
It's worse than that. If you grep the synopses, you'll find,
  • Perl 6 has an optional type system that helps you write safer code that performs better. The compiler is free to infer what type information it can from the types you supply, but will not complain about missing type information unless you ask it to.
  • A variable's type is a constraint indicating what sorts of values the variable may contain. More precisely, it's a promise that the object or objects contained in the variable are capable of responding to the methods of the indicated "role".
  • Junction types
It is vague at best, with some interesting clues of requirements. It has not yet been designed, just talked about in the newsgroup.

Thanks for the other suggestions.

Do you have any code for quartnion I could rewrite in Perl 6 as the example?


Replies are listed 'Best First'.
Re^5: Perl 6 shocking revelations #1
by toma (Vicar) on May 05, 2008 at 21:57 UTC
    I've been away at the 2008 Maker Faire - sorry for the delay in my reply.

    There is a perl module Math::Quaternion that you could use. I have not tried this module.

    It should work perfectly the first time! - toma

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://683756]
[Discipulus]: good morning monks!

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2018-04-26 06:58 GMT
Find Nodes?
    Voting Booth?