Re: expression and statements in Java
- From: "Joan" <Joan@xxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 18:27:04 -0500
"Shin" <bxin@xxxxxxx> wrote in message news:1122589401.219495.165140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Do what you want to do, who's stopping you?Would it be good to allow me to write either:
<cond> ? <code1> : <code2>
or
if(<cond>) then <code1> else <code2>
without forcing me to commit to which context this piece of code will
appear: i.e., expression or statement.
Normally you will choose one or the other, but when you generate code,
sometimes you just don't know.
Now I miss functional lang.
Suggestions? thanks,
.
- References:
- expression and statements in Java
- From: Shin
- expression and statements in Java
- Prev by Date: expression and statements in Java
- Next by Date: Re: Java install on Linux FC4 (Two very basic questions).
- Previous by thread: expression and statements in Java
- Next by thread: Re: expression and statements in Java
- Index(es):