r/Compilers • • 2d ago

Flame language

I want to get review of my (currently traspiled) language. It includes compiler and building system, minimal standard library. Its currently in development

Repo: https://github.com/TheFlameLang/Flame

Docs: https://flame-lang.mintlify.site

0 Upvotes

5 comments sorted by

2

u/firiana_Control 2d ago

Interesting

Why did you not include char as a var type? Not roasting you, curious about the engineering decision.

Also why is a struct equivalent to a c++ function?

1

u/naharashu 2d ago

About char. If you need like string you can use "string" type. If you need raw bytes you can use u8 array for example. And wdym struct is equal to c++ function?

1

u/firiana_Control 2d ago

ah my mistake. I meant: Why are variables and funtions examples of structs?

That is in the table 's last row here.
https://flame-lang.mintlify.site/Types

-1

u/naharashu 2d ago

Well i understand struct as type than just have user defined structure or smth👀

1

u/shrimpster00 2d ago

can you justify your decision to remove undefined behavior, and your claim that it is more secure than C++?