Monkey2 namespaces?

Community Forums/Monkey Talk/Monkey2 namespaces?

coffeedotbean(Posted 2016) [#1]
So I've been looking into the new Monkey 2 stuff and namespaces caught my eye, reading about them am I missing a trick or a useful byproduct of using them over that I've usually done to avoid clashes.

Currently I'd wrap associated functions & variables into a Type\Class



With namespaces I guess i'd do;



Pete Rigz(Posted 2016) [#2]
Yes that's exactly what you can do, quite handy. And they're hierarchical as well so you can organise them further is you need to, ie

Main module:

Namespace timelinefx


sub module:

Namespace timelinefx.collision



xlsior(Posted 2016) [#3]
.


Playniax(Posted 2016) [#4]
Namespaces have allowed me to remove all the horrible, HORRIBLE pr prefixes for all Pyro classes and functions!