On Sun, Dec 30, 2018, 7:24 PM Liam Breck <[email protected]> wrote:
> What's the rationale for omission of:
> fmt.Error(a ...interface{}) error
>
What does it mean for this function to accept a variable number of
arguments when there is no formatting or printing implied by the name of
the function?
> Given that other fmt functions come in that variety?
>
The other functions in the fmt package do some kind of formatting with the
arguments (newlines, format string)
> I realize it can be achieved like this, but so can fmt.Errorf
> errors.New(fmt.Sprint(...))
>
> Would a proposal to add it be entertained?
>
I have a feeling it wouldn't be accepted since it would just duplicate the
functionality of errors.New() and it doesn't provide any extra formatting
functionality.
> Happy New Year to all :-)
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.