so im designing a language grammar, and i was wondering if you guys could give your opinion on some ideas i had for it? thank you in advance.
1) nested functions (think python or javascript) or lambda. either way i would i have a function datatype for interfacing with it
2) your favorite way to do a foreach loop.
3) statically typed variables with a datatype that resembles boost::any or datatypes like in python
4) much like in python, i want to be able to do something like this:
1 2
|
import someLib;
someLib.functionA();
|
but what if you wanted to not include the library name? i didnt want to do
from someLib import functionA
since i dont want to completely copy python and i never liked that format. i came up with
import someLib implicit
but that looked ugly to me. naraku suggested on irc to do:
1 2
|
import someLib;
using someLib.functionA as functionA;
|
. can you guys think of a different way or is one of those good?