Stream: compiler development

Topic: Num.max_i64 alternative


view this post on Zulip Anton (Apr 21 2026 at 13:13):

I see that we currently have no analog for the old Num.max_i64, can I add I64.max, I64.min etc. for all the number types?

view this post on Zulip Richard Feldman (Apr 21 2026 at 13:21):

just an oversight; we should have them!

view this post on Zulip Richard Feldman (Apr 21 2026 at 13:22):

Should probably be I64.highest, I64.lowest etc (since min and max will already be taken)

view this post on Zulip Anton (Apr 21 2026 at 13:58):

min and max are not yet taken, would you like those to be two arg functions that give you the smallest/largest of the two?

view this post on Zulip Richard Feldman (Apr 21 2026 at 16:03):

yeah exactly!

view this post on Zulip Anton (Apr 21 2026 at 17:11):

I made #9357 and #9358 for this.


Last updated: May 01 2026 at 12:45 UTC