Skip to content

Compare Nickel and KCL? #1582

Answered by jneem
johnnyutahh asked this question in Q&A
Sep 7, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I looked into KCL a little today. There are several similarities: both languages have user-extensible runtime checks (contracts in nickel; schemas/protocols in KCL), mergeable records, and static types.

The KCL typesystem feels more nominal and object-oriented than nickel's:

  • in KCL you specify the name of the schema when you're writing out the object that's supposed to conform to it; in nickel, you can write out a record first and then apply the contract at some later point
  • in KCL, schema inheritance and mixins are written explicitly; in nickel you'd apply multiple contracts, and maybe use row polymorphism instead of sub-schemas

But I think the big difference is in the approach to lazin…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@johnnyutahh
Comment options

Answer selected by johnnyutahh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants