Some thoughts:
* How about letting "module my.pkg" translate into a class "pkg" in
the package "my"? I think this will expose a saner interface to
Java-land. For instance, considering the case where a library is
written in this language, and then used from Java.
* How about reserving the := operator for things that are truly
mutable, and then letting constants/finals be defined with = instead
of "const <identifier> := <expression>"?
* Why are the methods of a class (MyLock) outside the type
definition? If they were inside the definition, then it would clearly
signal what scope they were operating on, and I wouldn't have to
prefix the method names with the type name. Also, the syntax looks
inspired from languages that have multimethods or algebraic datatypes
- these features do not appear to be present in this language, as far
as I have been able to discern.
* On that note, having syntax for simulating algebraic datatypes
(this is called case-classes in Scala, is it not?) sure would be nice.
* How do you decide when a func-definition should produce a static
method, or a class that implements runnable?
* In the expression new map[string] int { "a": 1, "b": 2, "c": 3};
why is the 'int' part of the type outside the [] ?
* How do I define generic types? In your MyLock example, it seems
that [] are used to specify the interfaces that a type implements
while in the "map" expression above the [] are used for type
parameters.
On Thu, Jul 15, 2010 at 00:44, Dibyendu Majumdar <[email protected]> wrote:
> Apologies for any errors in the Java version of the examples - I
> haven't run all the Java stuff through the compiler.
>
> --
> You received this message because you are subscribed to the Google Groups
> "JVM Languages" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/jvm-languages?hl=en.
>
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--
You received this message because you are subscribed to the Google Groups "JVM
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jvm-languages?hl=en.