Post AcSuRvMSwBowsT4BUW by mort@fosstodon.org
(DIR) More posts by mort@fosstodon.org
(DIR) Post #AcSuRvMSwBowsT4BUW by mort@fosstodon.org
2023-12-03T18:54:44Z
0 likes, 1 repeats
My language has structs and while loops and comparison operators!... I am not sure if `'s` is the best struct accessor syntax.Also, I made the repo public: https://github.com/mortie/lolvm/#RakuLang #PLdev
(DIR) Post #AcSuRxpFm82KWKYCdk by mort@fosstodon.org
2023-12-03T19:00:05Z
0 likes, 0 repeats
A somewhat interesting detail: the language is statically typed, but the variable declaration syntax is just `<identifier> = <expression>`. If the identifier is undefined, it's a declaration. If the identifier is defined, it's an assignment.`uninitialized <type>` is an expression which evaluates to the type but doesn't make any guarantees about what the value is, so my language's `foo = uninitialized int;` is like C's `int foo;`.I might add optional type specifier syntax later.