PyHP-pph / PyHP_pph

This repository serves as a centre for collaboration on the PyHP++# language. It will also include a functioning interpreter and compiler for PyHP++# once the standard is finalised.
https://www.reddit.com/r/PyHP_pph/
GNU Affero General Public License v3.0
23 stars 3 forks source link

Modules #44

Open ghost opened 7 years ago

ghost commented 7 years ago

We should have a module system, so programmers can use libraries. I propose using a mixture of Python's and C++'s approaches:

From Python:

import MyMath;

MyMath.MySin(MyMath.MyPi);

And from C++:

//#* MyMath.pyph_pph_h - MyMath module header

Float MyPi = 3.141592;

Float MySin(Float x);
Kampfkarren commented 7 years ago

I propose we do have modules, but in the vein of PHP's global namespace we have none included by default.

ghost commented 7 years ago

Agreed.