A user on IRC recently suggested that it should be possible to specify
what an end block actually ends, like:

if false
    echo this never happens
end if

This would be caught before trying to execute the file/command:

if true
    echo nor will this
end begin

While this loop will execute _once_ after which time the end command will fail:

for i in 1 2 3; echo $i; end (echo no)

The last example is fairly meaningless, but that functionality is
there for completeness sake. Note that specifying block type for end
is 100% voluntary, there is no syntax change, only a way to make your
code slightly more readable and robust.

The code is in the darcs tree, comments are, as usual, welcome.

-- 
Axel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to