|
Fwd: Multi-parameter case classes: msg#00251lang.scala
sorry, meant to write to the list too ---------- Forwarded message ---------- From: Burak Emir <burak.emir@xxxxxxxxx > Date: Jan 22, 2007 11:26 AM Subject: Re: Multi-parameter case classes To: Tony Morris <tmorris@xxxxxxxxxxx> Only the first parameter section is matched for a curried case class constructor. That way, one can have case classes and still hide certain arguments. If that is annoying, you can define all your parameters in the first section, and add a curried constructor function with the same name somewhere else. cheers, Burak On 1/22/07, Tony Morris <
tmorris@xxxxxxxxxxx> wrote: I am trying to write a case class that can be partially applied, but get Burak Emir Research Assistant / PhD Candidate Programming Methods Group EPFL, 1015 Lausanne, Switzerland http://lamp.epfl.ch/~emir -- 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: | Re: pattern matching works strange for an O'Caml programmer: 00251, Alexander Sergeev |
|---|---|
| Next by Date: | Re: pattern matching works strange for an O'Caml programmer: 00251, Burak Emir |
| Previous by Thread: | Multi-parameter case classesi: 00251, Tony Morris |
| Next by Thread: | Scala generics for automatic differentiation: 00251, Michel Salim |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |