3 ms·
Well, maybe. The problem is that mature languages and ecosystems are mature and new features have to be shoehorned in. Raku (https://raku.org https://raku.org)
by librasteve 10mo ago
Well, maybe. The problem is that mature languages and ecosystems are mature and new features have to be shoehorned in. Raku (https://raku.org https://raku.org) on the other hand is intentionally designed as a braid of sub languages (slangs) for quoting, regex, PEG, etc and you can easily make your own slang with eg. https://raku.land/zef:lizmat/Slangify https://raku.land/zef:lizmat/Slangify so you get your DSL as a drop down language in a general PL setting.
- jolt42 10mo agoThere's so many languages out there, I reject Raku out-of-hand simply since IMO the type should follow the variable name.
- librasteve 10mo agohmmm Raku is C style int number; … you choose Pascal style number : Integer;
- jolt42 10mo agoVery good, I wrote Pascal many years ago, but I was thinking more Kotlin/Scala (right?) vs Java.
- lizmat 10mo agoYou mean like: my $a of Int = 42; say $a; # 42 or my $a of Int = "foo";' # Type check failed in assignment to $a; expected Int but got Str ("foo") ?