Malluscript v2.0.0 - The Module Update
This major release introduces a robust module system and refines the language structure to more closely align with Malayalam grammar patterns.
What's Changed
- New Module System: Organize your code better with the new
ulppeduthuka(include) keyword. - Module Aliasing: Use
ennuorayito give your imports a custom name (e.g.,math m ennu ulppeduthuka;). - Malayalam Grammar Order for I/O and Return: To maintain linguistic consistency,
ezhuthuka,kanikuga, andkodukuganow follow Malayalam sentence structure, where the action traditionally follows the object.
Module System Details
You can now import other Malluscript files as modules. The path can be directed using : for subdirectories.
Example:
math m ennu ulppeduthuka;
res = m.math_add<3, 4>;
res ezhuthuka;Malayalam Grammar Order
In line with Malayalam's Subject-Object-Verb (SOV) structure, I/O and return operations now place the action at the end of the statement. This makes the code read more like natural Malayalam sentences.
Previous Structure (v1.1.0 and before):
In previous versions, writing or returning a value followed a prefix pattern:
കാണിക്കുക "ഹലോ";
കൂട്ടുക(സംഖ്യ1, സംഖ്യ2) {
കൊടുക്കുക സംഖ്യ1 + സംഖ്യ2;
}v2.0.0 (Malayalam Grammar Order):
Now, the object to be written or returned precedes the action:
"ഹലോ" കാണിക്കുക;
കൂട്ടുക(സംഖ്യ1, സംഖ്യ2) {
സംഖ്യ1 + സംഖ്യ2 കൊടുക്കുക;
}Support the Project
If you find Malluscript useful, please consider supporting the development through any of the following platforms:
- Patreon: Support on Patreon
- Open Collective: Back us on Open Collective
- Buy Me a Coffee: Buy me a coffee
For more details and examples, visit the Malluscript Repository.
New Contributors
- @ByteJoseph made their first contribution in #35
Full Changelog: 1.1.0...2.0.0