clever-lang/clever — Issue #61: Transform module functions in methods
Author: pedrofaria
Created: 2012-01-13 13:41:17+00:00
State: open

Transform access to all modules to class style.

EXAMPLE 1:

import std.io;
std.io.println('foobar');

EXAMPLE 2: (with alias)

import std.io as io;
io.println('foobar');

In my mind some methods like print, println, constant declaration and others, must be used as function in the code and if clever can add methods references into variables like javascript, you can solve this problem adding this variables automatically...

import std.io;

// auto --> print = std.io.print
// auto --> println = std.io.println
// ...

I don't know if I was clear but I already talked with Felipe about it...

Pedro.