Convex-Dev / convex

Convex Main Repository - Decentralised platform for the Internet of Value
https://convex.world
Other
93 stars 30 forks source link

`declare` should return `nil` #477

Closed helins closed 9 months ago

helins commented 1 year ago

Instead of a vector of nil for each declared symbol. It would be best using a loop instead of map for declarations.

mikera commented 1 year ago

Probably should just introduce a Clojure-style for list comprehension macro to do this?

mikera commented 1 year ago

Updated to return nil. Leaving open to consider use of loop in the implementation. for currently uses map under the hood anyway, which perhaps needs changing to loop for more efficiency.