jonathanhogg / flitter

A functional programming language and declarative system for describing 2D and 3D visuals
https://flitter.readthedocs.io
BSD 2-Clause "Simplified" License
34 stars 1 forks source link

What if `Vector`, but `.objects` is `tuple`? #21

Closed jonathanhogg closed 8 months ago

jonathanhogg commented 8 months ago

Since Vector objects are supposed to be immutable, I can make the .objects sequence a tuple instead of a list. This is useful because there are a number of optimisations in the Python runtime for creating tuples more cheaply than lists.