[nem-en] Re: Nemerle try catch behaviour
Snaury
snaury at gmail.com
Mon Jul 31 21:11:42 CEST 2006
Hi everyone,
I figured out how to make quotation syntax work and here's a new patch:
http://snaury.googlepages.com/nemerle-experimental-try-catch-2006-07-31.patch
Now you can match try with all cases like this:
match (expr) {
....
| <[ try $body catch { .. $cases } ]> => ....
....
}
HOWEVER, I didn't know where and how to properly put error checking
for using such a syntax outside of quotation, this:
try { } catch { .. $cases }
Will currently ice in typer. On the other hand, found while looking
for maybe example from match, when you write:
match (expr) { .. $cases }
You'll get NullReferenceException somewhere in the compiler, so I'm
not sure whether ice'ing is that bad. ;)
P.S.
Seems like major problems solved and I'm ready to commit, but need
someone to accept it first (since change might be braking for macros
that match on PExpr/TExpr) or tell me what needs to be changed.
Michał, Kamil, Paweł?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nemerle-experimental-try-catch-2006-07-31.patch
Type: application/octet-stream
Size: 36669 bytes
Desc: not available
Url : /mailman/pipermail/devel-en/attachments/20060731/7e4ea2fd/nemerle-experimental-try-catch-2006-07-31-0001.obj
More information about the devel-en
mailing list