the_great_cow_guru
Member
I've noticed that a lot of times people need to rewrite their code because of naming conflicts (like when they import zlib) I was wondering how hard would it be to add namespaces to kolmafia? Maybe it would look something like this
	
	
	
		
and then if you import it you can write
	
	
	
		
and there won't be any naming conflicts. I don't know how hard that would be to implement, just throwing it out there.
				
			
		Code:
	
	namespace my_namespace {
    void my_function () {...}
    ...
}and then if you import it you can write
		Code:
	
	my_namespace.my_function();and there won't be any naming conflicts. I don't know how hard that would be to implement, just throwing it out there.
