Skip to content

Should we use a simplified Clarity syntax for maps definition? #25

Answered by JMKJR
LNow asked this question in Q&A
Discussion options

You must be logged in to vote

Good point of discussion and nicely framed :)

I prefer the shorter syntax and I disagree that it's "less explicit" just because it's less wordy. I actually find it more explicit since it better resembles map usage in other programming languages. For other languages, you don't provide an argument of {key: keyName} to a map call, you just pass the keyName and the method signature already knows it's the key. I found it confusing when I was first learning clarity that a tuple representing the key is passed as an argument to basic map calls. Seemed wordy, confusing, and unconventional.

Should this be a @labs3/standards discussion though instead of a daoOS discussion? Either way, we may need to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Zk2u
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