Re: Expression-local variables and 'let'
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
Quoting Isaac Gouy <[email protected]>: > Or the alternative approach of upsetting them all equally ;-( ouch! > No doubt the differing views have to do with the coding styles being > used. Seems like in Nice by default I use single assignment "let" > throughout the code and then change to an explicit type or var if > needed. Yes, me too. > These imperative usages read well: > let s = shortName(c.getName); > > and as I use this form a lot, giving them up doesn't seem like a great > idea. > > It is a little scary to catch myself writing things like this ;-) > let s = shortName(c.getName); > let s' = s + ... I think this is normal when you are writing in a functional style. > (maybe I should give-up and use a real fp language) ouch!!! - Brian ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click