Erick Tryzelaar wrote:
> I'm not sure what we'd do about matches though. Felix (the compiler) has 
> some *very* large matches.


Actually, it's pretty simple. We could have unnamed structural ends. 
Going back to Nicolas's suggestion, we could do:

val y =
  match x with
  | 5 => 6
  | 6 => 7
  | _ => 8
  end match
;

val y =
  if x
    then 5
    else 6
  end if
;

module X =
  val x = 5;
end module;

It seems like it could be a conflict with named ends, like:

module X =
  val x = 5;
end X;

but I think we could distinguish between the two because structural ends 
have a keyword, and named ones have an identifier.

Personally I'm not crazy about structural ends, but since I think they'd 
only be used in very large blocks, it wouldn't be too burdensome.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to