logoalt Hacker News

tapirllast Sunday at 4:54 PM1 replyview on HN

Normal function declarations.

This is indeed a point which makes Zig inflexible.


Replies

lenkitelast Sunday at 5:51 PM

By adopting a syntax like

    fn add(x: i32, i32) i32

they have said perma-goodbye to lambdas. They should have at-least considered

    fn add(x: i32, i32): i32
show 2 replies