lambdaclass / concrete

Concrete is a simple programming language specifically crafted for creating highly scalable systems that are reliable, efficient, and easy to maintain.
Apache License 2.0
123 stars 11 forks source link

Union & enum syntax #103

Closed JulianGCalderon closed 4 months ago

JulianGCalderon commented 5 months ago

Adds support for parsing Enum and Union, this includes:

github-actions[bot] commented 5 months ago

Benchmarking factorial

JulianGCalderon commented 4 months ago

Why Foo.Bar instead of Foo::Bar?

I used Foo.Bar as it was the simplest to implement, given that the dot notation is used for paths and structs.

edg-l commented 4 months ago

I'm not sure if unions should allow generics, since they will be mostly for use in ffi and/or within std. Other than that looks good.