[e-lang] Couple of newbie questions

Chris Rathman Chris.Rathman at tx.rr.com
Mon Dec 25 00:26:18 CST 2006


I guess since I also ran across the same problem a couple of times 
(including in the message), it might be nice to have a warning issued 
for functions that don't have a return in a path.

def _(x) { return x.sin() }

versus

def _(x) { x.sin() }

A trivial error on my part, but I managed to stumble into it a couple of 
times.  Of course, there are functions that don't return values (aka 
procedures), so warnings would be an annoyance factor in those cases.

Thanks,
Chris Rathman

Chris Rathman wrote:
> ....  But I couldn't figure out 
> how to do this from an FP perspective short of wrapping it in a function 
> (def _(x) { x.siu() }). 



More information about the e-lang mailing list