3 ms·
Oddly, all three examples have analogues in real programming languages already: - in many C-derived languages, a “list of objects” is spelt “object[]” as a typ
by nneonneo 7y ago
Oddly, all three examples have analogues in real programming languages already:
- in many C-derived languages, a “list of objects” is spelt “object[]” as a type, with the “list” (array) specifier postfixed. (Functions declared to return arrays take this syntax to quite an interesting extreme.)
- in Perl and some derivative languages, sigils serve as a prefix to denote context of use or type; $var is different than %var or @var, for example.
- In Ruby, a leading uppercase character defines a constant, and some aspects of the language are sensitive to the case of the identifiers used.
Of course, it’d be super interesting to put many of these ideas into a single language, as it could well be quite different (and refreshing!) than many of the languages we use today.