Native Valuesregistry-listed
Native Operator
Apply a native operator without an implicit numeric conversion.
Registry listing does not certify support for every language or host environment. Check the selected target’s diagnostics and generated output.
Overview
- Kind id
- expr_native_operator
- Semantics
- expr.native
- Source
- CORE_NODE_REGISTRY
When to use
Choose the language and operator, then connect operands in order. Unknown evidence preserves native dispatch; Number requires numeric operand evidence.
Graph to code example
JavaScript == retains abstract equality. Python + retains overload dispatch, and is remains separate from ==.
Watch for
Calls used as operands need distinct visible execution ownership in operand order. Short-circuit forms require their own future mapping.
Ports
| Id | Dir | Type | Label |
|---|---|---|---|
| operand-0 | in | data_any | Operand 1 |
| operand-1 | in | data_any | Operand 2 |
| result | out | data_any | Value |
Options
| Id | Type | Default | Notes |
|---|---|---|---|
| nativeLanguage | enum | javascript | - · enum: javascript, python, go, csharp, cpp, rust, gdscript |
| nativeForm | enum | binary | - · enum: binary, unary, conversion, parentheses, overflow |
| operandCount | number | 2 | - |
| operator | enum | + | - · enum: +, -, *, /, //, %, **, ==, !=, ===, !==, <, <=, >, >=, &, |, ^, <<, >>, >>>, in, not in, is, is not, instanceof, &^, !, &&, ||, ~ |
| nativeDomain | enum | unknown | Number requires numeric input evidence; unknown retains native dynamic dispatch. · enum: unknown, number, go-integer, go-float, go-number, csharp-integer, csharp-bool, native-integer, native-bool |
| nativeTargetType | enum | Explicit native numeric conversion; preserves runtime conversion and checks constant representability. · enum: int, uint, uintptr, int8, int16, int32, int64, uint8, uint16, uint32, uint64, byte, rune, float32, float64, sbyte, short, ushort, long, ulong, char, bool, unsigned int, signed char, unsigned char, unsigned short, unsigned long, long long, unsigned long long, i8, u8, i16, u16, i32, u32, i64, u64, i128, u128, isize, usize | |
| payload | enum | checked | Visible expression overflow context; nested contexts keep their own ownership. · enum: checked, unchecked |