bonjour,
I would like to do that.
fn ‘=’ (…) void
instead of doing eq or add etc…
bonjour,
I would like to do that.
fn ‘=’ (…) void
instead of doing eq or add etc…
Hi! You can use @"..."
syntax to use any UTF-8 string as an identifier in Zig. See the section on identifiers in the language reference here: Documentation - The Zig Programming Language
Here’s a small example
const std = @import("std");
pub fn @"="(val: i32) void {
std.debug.print("{}\n", .{val});
}
pub fn main() void {
@"="(32);
}