risor-io / risor

Fast and flexible scripting for Go developers and DevOps.
https://risor.io
Apache License 2.0
581 stars 24 forks source link

range iteration over an integer #180

Closed myzie closed 5 months ago

myzie commented 5 months ago

This update makes range 5 a valid expression, which evaluates to an int_iter object. As a result, Risor now supports the range-over-int iteration comparable to what was added in Go 1.22.

https://tip.golang.org/doc/go1.22

myzie commented 5 months ago

fyi @applejag @luisdavim