package nstd

import (
	
)

// Error returns an error that formats as the given text.
// Different from errors.New in the std library, two calls
// to Error return an identical error value if the texts are identical.
func ( string) error {
	return errorString{unique.Make()}
}

// Another approach: type errorString string.
// But that results fat interface values.
type errorString struct {
	s unique.Handle[string]
}

func ( errorString) () string {
	return .s.Value()
}