Earlier quoted context omitted.
One thing I like about the sigils is that they make bad ideas hard to type. Want to pass me a hashtable of lambdas that return arrays of alternating functions and regexps? Go ahead. Show me how to invoke it. I'm waitng. Python (which has all of the type safety and expressivity of perl) allows such abominations to hide behind clean looking syntax. Sigils also improve readability. Bad Perl looks like serial port noise.…
> arrays of alternating functions and regexps many languages will allow you to succinctly express the concept of "the type of this element is a or b" e.g. typescript: https://www.typescriptlang.org/docs/handbook/2/everyday-type... Rust: https://doc.rust-lang.org/book/ch06-01-defining-an-enum.html F# : https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe... IDK, allowing that kind of type to be declared seems…
Alternating functions and regexps looks like this:
[\&some_function, qr/some_regex/, \&another_function, qr/another_regex/]
This is distinct from the idea of sum types.