4 ms·
A lot of this type-system stuff is not really relevant to the Fortnite modder audience. If you look at the kind of code used in more practical examples (https:/
by csande17 4y ago
A lot of this type-system stuff is not really relevant to the Fortnite modder audience. If you look at the kind of code used in more practical examples (https://dev.epicgames.com/documentation/en-us/uefn/learn-code-basics-8-practice-time-in-verse https://dev.epicgames.com/documentation/en-us/uefn/learn-cod...) it doesn't do very much of this -- it's basically Python crossed with Java.
Well, they have also inverted the usual capitalization conventions for seemingly no reason. Class names are lowercase_with_underscores and local variable names are UpperCamelCase.
- codetrotter 4y ago> lowercase_with_underscores aka snake_case > UpperCamelCase aka PascalCase But yeah I agree it’s curious that they use these the other way around from what I am used to in Python and Rust.
- dmytrish 4y agoI'm just guessing, but snake_case might be inspired by dependently typed programming languages, where there's no strict boundary between terms and types. PascalCase for variables reminds me of unification-based programming languages like Prolog.