You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is, nil value for a parameter is not the same as not supplying a value for the parameter.
Additionally, it's worth adding to the Introduction a note about how to correctly skip a default parameter (well, it must be a keyword parameter for us to be able to do that).
Issue 2. This exercise continues another learning exercise: Lilly's Lasagna. Lilly's Lasagna Leftovers is meant to re-implement some functions from Lilly's Lasagna in a more sophisticated way. The design in Lilly's Lasagna was: expected-time-in-oven defines total cooking time; remaining-minutes-in-oven subtracts from it elapsed-time-in-oven to produce its result. In Lilly's Lasagna Leftovers, the total cooking time is calculated in a more sophisticated way, but the function that is required to be rewritten is remaining-minutes-in-oven (which doesn't have an elapsed-time-in-oven parameter now).
Imo, the preferable way of fixing this issue is to rewrite expected-time-in-oven rather than remaining-minutes-in-oven. Regarding the latter, one small change can be: the parameter elapsed-time-in-oven should now have a default value of 0.
The text was updated successfully, but these errors were encountered:
At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.
This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!
If you're interested in learning more about this auto-responder, please read this blog post.
Issue 1. This is a learning exercise, so it has an Introduction devoted to lambda lists. In the Optional Parameters section, there is a line
In fact, it should be:
That is,
nil
value for a parameter is not the same as not supplying a value for the parameter.Additionally, it's worth adding to the Introduction a note about how to correctly skip a default parameter (well, it must be a keyword parameter for us to be able to do that).
Issue 2. This exercise continues another learning exercise: Lilly's Lasagna. Lilly's Lasagna Leftovers is meant to re-implement some functions from Lilly's Lasagna in a more sophisticated way. The design in Lilly's Lasagna was:
expected-time-in-oven
defines total cooking time;remaining-minutes-in-oven
subtracts from itelapsed-time-in-oven
to produce its result. In Lilly's Lasagna Leftovers, the total cooking time is calculated in a more sophisticated way, but the function that is required to be rewritten isremaining-minutes-in-oven
(which doesn't have anelapsed-time-in-oven
parameter now).Imo, the preferable way of fixing this issue is to rewrite
expected-time-in-oven
rather thanremaining-minutes-in-oven
. Regarding the latter, one small change can be: the parameterelapsed-time-in-oven
should now have a default value of 0.The text was updated successfully, but these errors were encountered: