|
Re: two things about defs: msg#00411lang.scala
hi alexander, to the first question, the answer is that methods are different from function values. to the second, the second- and higher-order systems like F(sub), Fomega(sub) have indeed some undecidability results, concerning inference, and subtyping. polymorphic values (type abstraction values) take you there. maybe for that reason, type inference does not like to leave type parameters of methods-turned-into-functions uninstantiated. i don't know for sure (it seems feasible to do what you propose for *methods*), but I guess we would not like to be inference to do different things for values and for methods(defs). BTW I think you could have omitted the & in definition of xxx, given that you gave a function type in the annotation. hope this helps, Burak On 1/27/07,
Alexander Sergeev <as.beta@xxxxxxxxx> wrote: I've posted one of these features into buglist, another one is probably -- Burak Emir Research Assistant / PhD Candidate Programming Methods Group EPFL, 1015 Lausanne, Switzerland http://lamp.epfl.ch/~emir |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Any way to cut down on memory footprint?: 00411, Warren Henning |
|---|---|
| Next by Date: | Re: Any way to cut down on memory footprint?: 00411, Warren Henning |
| Previous by Thread: | two things about defsi: 00411, Alexander Sergeev |
| Next by Thread: | Re: two things about defs: 00411, Alexander Sergeev |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |