I tried to find the answers to these in the Synopses, but I couldn't. Plan B is to ask the mailing list.

- What does the "first" method/subroutine return when no elements of the list match? Does it return the empty list? Does the return value count as undefined/failure?


- What type is the $buf argument to the IO::Readable::read method supposed to be? Should it be a Buf, and, if so, does the size of the Buf's elements matter? How would one indicate a desired element size when reading to an uninitialized Buf? A similar question also applies to IO::Writeable::write. (Also, "Writable" is misspelled.)

 - How does one get/set the number/size of elements in a Buf object?

- Exactly what happens if & when a call to open() fails? Is an exception thrown, and, if so, how does one catch it?

- How does one declare multiple variables of the same type with a single "my" statement? Is it "my Int ($x, $y);", "my(Int $x, Int $y);", or something else? Are the parentheses still necessary when declaring more than one variable? What about when initializing more than one variable?

- Is there some sort of shortcut (e.g., of the form ".‽method") for calling a method on an object if the object is defined and returning undef if it is not defined? I was hoping that ".?method" could do this, but it doesn't seem to (in Rakudo, at least).

Thank you in advance,
        Minimiscience

Reply via email to