
nick at ccl4
Jul 26, 2012, 8:02 AM
Post #9 of 9
(72 views)
Permalink
|
On Mon, Jul 16, 2012 at 12:31:01PM -0700, Klaus wrote: > On 16 juil, 13:49, faw...@gmail.com (Leon Timmermans) wrote: > > On Sun, Jul 15, 2012 at 4:27 AM, Uri Guttman <u...@stemsystems.com> wrote: > > > ok, here is a brainstorm (or fart). it is a very rough idea for a better > > > given/when syntax > > > > > > flames and plaudits are welcome. > > > > I'm not seeing the point of this. The current semantics have many > > flaws, but does one thing right: it's extensible on CPAN. You can > > already do all of this and more, and IMHO with less ambiguity than in > > this proposal. > > I very much agree with that, actions speak louder than words. > > I would very much like to write a CPAN module with what I believe > would be the right extension for given/when, so my question is: > > I am just an average Perl programmer with a little knowledge of C, but > no knowledge of XS, is there any documentation (perldoc, blogs, > documents on the internet, etc...) that help me to write a given/when > extension on CPAN ? (I prefer a pure perl aproach, but I am willing to > learn XS if needed). So, no-one answered. I'm not aware of any documentation that specifically describes what one would need to do to write a given/when extension on CPAN. I don't even know which modules currently on CPAN do things related to smartmatch, but I'd guess the way to go from here is to find them, look at what they do (and can't do), and where it's not obvious what's going on, ask the relevant authors specific questions, or (if it's messy XS code) ask here. Nicholas Clark
|