News for hackers. Stuff that matters.
Re:Show HN: Beef, a new performance-oriented programming lan... by novok on Wednesday January 08, 2020 @05:19PM (#21996379)
Do you think you will add nullability / optionals into the the type system along with ADT types? (Think swift enum's with associated types). I think structurally they are fairly simple, but very powerful.
Re:Show HN: Beef, a new performance-oriented programming lan... by beefdev on Wednesday January 08, 2020 @05:30PM (#21996456)
There are nullables (like C# nullables), same syntax: "int? a = null;". There's also algebraic data types like Swift's enum. Quite a lot like Swift's enum, actually. See bottom example in enum section: https://www.beeflang.org/docs/language-guide/datatypes/#enum...