expression and statements in Java
- From: "Shin" <bxin@xxxxxxx>
- Date: 28 Jul 2005 15:23:21 -0700
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,
.
- Follow-Ups:
- Re: expression and statements in Java
- From: Roedy Green
- Re: expression and statements in Java
- From: Joan
- Re: expression and statements in Java
- Prev by Date: Re: Logging Strategy/best practice
- Next by Date: Re: expression and statements in Java
- Previous by thread: macro processor, string juggler, script language ?
- Next by thread: Re: expression and statements in Java
- Index(es):
Relevant Pages
|
|