Browse thread
Curried form different from "normal"
- Till Varoquaux
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2006-02-05 (16:40) |
From: | Till Varoquaux <till.varoquaux@g...> |
Subject: | Curried form different from "normal" |
I can across something that puzzled me while develloping a caml application: Using: let non_blank_string= if !is_first then trailling:=Buffer.contents white else Buffer.add_buffer buf white; Buffer.reset white; is_first:=false; Buffer.add_string buf instead of let non_blank_string s= if !is_first then trailling:=Buffer.contents white else Buffer.add_buffer buf white; Buffer.reset white; is_first:=false; Buffer.add_string buf s Doesn't yeld the same results (the former is buggy). Now, as I understand, these two functions should be exactly equivalent. I am misunderstanding something here? Cheers, Till Varoquaux