Add a method to get the answer in Spanish #2
Labels
closed-as:wontfix
[issue] is valid, but will not be acted upon (see comments).
easy
[issue] is easy to grasp, a good pick for new collaborators.
enhancement
[issue/PR] requests / implements new or improved functionality.
Reference version
1.0.1-preview
Background and motivation
We all know how important the Answer is.
As a matter of fact, the team here has already gone to great lengths to provide every user with the Answer: we can get it in binary form simply by calling
Aaa.GetTheAnswer()
, or even as Italian text withAaa.GetTheAnswerInItalian()
.What's missing IMHO is a method to retrieve this essential piece of information in Spanish. Spanish has a lot more speakers than Italian, so a
GetTheAnswerInSpanish
method would allow applications to support a much greater number of users.Proposed enhancement
Add to the
Aaa
class a method (probably calledGetTheAnswerInSpanish
) that returns the Answer in Spanish.Implementation proposals
The implementation could be similar to
GetTheAnswerInItalian
. Namely:string
on older frameworks and aReadOnlySpan<char>
on frameworks with span support.Usage examples
Given this code:
the console output should be:
Risks
I don't see any risks potentially arising from this improvement, as existing code would not be modified and the new methods, if correctly implemented, shouldn't present any particular security risk.
Additional information
I have nothing else to say, but hey, this form won't test itself, right?
The text was updated successfully, but these errors were encountered: