Re: [pure-lang-users] gedit pure.lang
Status: Beta
Brought to you by:
agraef
From: Eddie R. <er...@bm...> - 2008-08-30 04:16:16
|
On Sat, 2008-08-30 at 01:43 +0200, Albert Graef wrote: > John Cowan wrote: > > Supporting those is silly. a*.5? No, no. a*0.5 is far more readable. > > Just change the definition of a float. > > In good ol' Europe we never write .5, I guess it's a US thing. But it's > supported in most programming languages, and it doesn't do any harm in > the Pure syntax. Conversely, 1. is forbidden, to avoid issues with the > .. operator. 1. ? #include <stdio.h> int main(void) { printf("%g\n", 3. * 0.2); return 0; } $ a.out 0.6 I guess you're right. That's weird. e.r. |