I am currently checking a MAJOR change in Felix .. that amounts to nothing... :)

Modules are being eliminated entirely, just use typeclasses instead.

Currently the "module" keyword generates a typeclass as if you wrote 
"typeclass".
The syntax is extended a bit so you can open a typeclass at the point of 
definition:

open module X { ... }
open typeclass X { .. }

There is a small difference. Given

module X[T] { .. }

you can say

open X;

because the "T" in a module is just inherited by all components: modules aren't
polymorphic. Typeclasses are, so you cannot just say:

open X;

for a typeclass, you have to say:

open[T] X[T];

instead. A few gotchas will probably arise :)


--
john skaller
skal...@users.sourceforge.net





------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to