Re: [QuantLib-svn] SF.net SVN: quantlib:[17886] trunk/QuantLib

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [QuantLib-svn] SF.net SVN: quantlib:[17886] trunk/QuantLib

Luigi Ballabio
On Thu, 2011-07-14 at 14:57 +0000, [hidden email] wrote:
> Revision: 17886
>           http://quantlib.svn.sourceforge.net/quantlib/?rev=17886&view=rev
> Author:   nando
> Date:     2011-07-14 14:57:02 +0000 (Thu, 14 Jul 2011)
>
> Log Message:
> -----------
> added truncated Schedule constructor (and removed unused private data member)

Just wondering if a method would be more explicit---e.g., something like

  Schedule s = originalSchedule.until(d);

might be more readable than

  Schedule s(originalSchedule, d);

Thoughs?

        Luigi


--

Poets have been mysteriously silent on the subject of cheese.
-- Gilbert K. Chesterton



------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: [QuantLib-svn] SF.net SVN: quantlib:[17886] trunk/QuantLib

Ferdinando M. Ametrano-3
> Just wondering if a method would be more explicit---e.g., something like
>
>  Schedule s = originalSchedule.until(d);
>
> might be more readable than
>
>  Schedule s(originalSchedule, d);
>
> Thoughs?

I considered this option and don't have a strong preference between the two.

I favored the constructor just because the QuantLibAddin mapping would
have been a constructor in both cases (as for all methods/functions
returning objects).

Feel free to change it as you prefer

ciao -- nando

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev