MooseX...mespace(3pm)

πŸ“¦
version 0.43 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ‘‘ NAME

okay bestie, gather round, because this page is literally about MooseX::Declare::Syntax::Keyword::Namespace β€” the thing that lets you declare an outer namespace. That's it. That's the whole gig. πŸ’…

(also hi, this is MooseX...mespace(3pm), straight out of the User Contributed Perl Documentation manual, in case you were wondering which doc you wandered into 🫢)


✨ VERSION

version 0.43 β€” yes, we're on 0.43, iconic behavior only.


🌸 SYNOPSIS

like, here's the vibe:

use MooseX::Declare;

namespace Foo::Bar;

class ::Baz extends ::Qux with ::Fnording {
    ...
}

πŸ’– DESCRIPTION

so the namespace keyword lets you declare an outer namespace, and then everything else you write that's namespaced can just nest up inside it. no cap. πŸͺΊ

and the SYNOPSIS above? it's effectively the exact same thing as this:

use MooseX::Declare;

class Foo::Bar::Baz extends Foo::Bar::Qux with Foo::Bar::Fnording {
    ...
}

like, same energy, same result, you just didn't have to type the whole prefix over and over. main character efficiency fr fr. ✨


πŸŽ€ METHODS

parse

Object->parse(Object $context)

what it does: it'll skip the declarator, parse the namespace, and then push that namespace onto the file package stack. that's the whole move. obsessed. πŸ’…


πŸ¦‹ CONSUMES

  • MooseX::Declare::Syntax::KeywordHandling

🌈 SEE ALSO

  • MooseX::Declare

πŸ’œ AUTHOR

Florian Ragwitz <rafl@debian.org> β€” king behavior, thank you for your service πŸ‘‘


This software is copyright (c) 2008 by Florian Ragwitz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


okay that's the whole page, you're officially educated πŸŽ“πŸ’– this lil beauty shipped as part of perl v5.34.0, dated 2022-06-15, and the page itself answers to MooseX...mespace(3pm) (yes the name is truncated, we don't talk about it 😭). bye bestie, go namespace something πŸ¦‹βœ¨

πŸ“¦ where this page comes from