Sign in

Radar · Rust · Archive · Week 34 · Aug 17 – 23, 2026

Rust Function Overloading – Call for Experimentation

Nice to knowlanguage

What changed
The Rust team called for experimentation on function overloading.
Production impact
The source does not say.
Try it
Read the proposal and consider how it might affect your API design.
Source
blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/

Understand it, then run it

Run it now

Todayrust
// This program demonstrates the current stable way to call an overloaded
// function that expects a tuple of arguments. The nightly `splat` feature
// is not available in Rust 1.98.1, so we use the tuple syntax instead.
fn hypot(args: (f64, f64, f64)) -> f64 {
    // In a real FFI scenario this would call into C++.
    // Here we just compute the Euclidean norm.
    let (x, y, z) = args;
    (x * x + y * y + z * z).sqrt()
}

fn main() {
    // Call with a tuple: (2.0, 3.0, 6.0)
    let result = hypot((2.0, 3.0, 6.0));
    println!("hypot(2.0, 3.0, 6.0) = {}", result);
}

What it printed when we ran it on Rust 1.98.1 (edition 2024)

hypot(2.0, 3.0, 6.0) = 7

Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed