Settings

Theme

What I Would Like to See in a Type System

loudenanalytics.com

1 points by louden 7 years ago · 3 comments

Reader

smt88 7 years ago

Some of what you ask for is impossible in a static type system for a Turing-complete language.

If you want it to happen at runtime, you could accomplish something almost exactly as you describe with macros in multiple mainstream languages. Or, as you alluded, just use business logic.

You'd probably enjoy a more declarative language like Haskell, honestly.

  • loudenOP 7 years ago

    I imagined that would be the case, but don't have the CS background to prove one way or the other. I am currently learning OCaml and would love to use it more, but my job keeps me tied to R, SAS and Python.

  • perfmode 7 years ago

    i thought these constraints were known as dependent types?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection