Marcin 'Qrczak' Kowalczyk wrote: > Mon, 17 Feb 2003 02:35:05 +0900, Chris Pine <nemo / hellotree.com> pisze: > > >>Is there a language where variables are first-class objects (in >>which case I imagine assignment to be a normal function/method)? > > > Yes, several functional languages (SML, OCaml, Glasgow Haskell). > But the syntax is a bit ugly (or very ugly in Haskell). First of all, I don't agree that variables are first class objects in any of the above languages. Secondly: There are several drawbacks of using Haskell, but it is definitively *NOT* the "ugly syntax". I would go so far to say that I have not seen a language with more elegant syntax than Haskell (even compared to Ruby). Still I prefer OCaml over Haskell for practical programming for several reasons (inpurity, efficiency, compilation speed, more mature libraries,module system), but I wish it had Haskells syntax and type classes. Best Regards, Christian