3 ms·
> I cannot imagine a single language without the if operator, but only a few PLs accommodate full-fledged trait bounds, not to mention pattern matching. This i
by paulddraper 3y ago
> I cannot imagine a single language without the if operator, but only a few PLs accommodate full-fledged trait bounds, not to mention pattern matching. This is inconsistency...Combining statics and dynamics in a single working solution is also complicated since you cannot invoke dynamics in a static context. In terms of function colours, dynamics is coloured red, whereas statics is blue.
Yeah, but unless you have some fancy totality checker, that's just the way it is.
> Idris: The way out?
Yeah okay, like that.
> A hypothetical solution should take the best from the both worlds. Programming languages ought to be rethought.
---
You can have static checking, "uniformity", or simplicity.
Choose two.
- lmm 3y agoOne could argue that Idris ends up a lot simpler, through being uniform, than a language like C++ or LiquidHaskell that has to implement the same thing multiple times because of that separation between compile- and runtime.