NullNumber

package
v0.0.0-...-7429549 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Number.Interface
}

NullNumber is the Null-Object variant of Number.

It satisfies Number.Interface so callers never have to test for a bare nil: its value is zero, its arithmetic yields a Result carrying a "method not implemented" Error, and IsNull() returns true.

func New

func New() Interface

New returns a NullNumber.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL