Show HN: Luanalysis – Statically type checked Lua IDE (github.com)
Just released v1.4.0 of my open source Lua IDE (Jetbrains plugin) with support for optional bolt-on types specified as regular Lua comments.
Biggest new feature is support for optional parameters (previously supported, but cumbersome with overloads).
1 comment
[ 3.1 ms ] story [ 14.5 ms ] threadThis comes up regularly, and recently did so again when implementing variance of functions with optional parameters. Essentially, I opted for convenience over soundness. Consider the following TS which will crash at runtime, but is permitted by TS' type system:
Basically, `noParams = optionalStringParam` probably shouldn't be allowed. But in the general case, it is certainly convenient. So I opted for the same in my own type system.