Skip to content

Comment on Nim 2.2.6parent

Comments

`@` makes the array (stack allocated) into a sequence (heap allocated).

Edit: Just read the second half of your post—

I don’t think the equivalent Python code would look much different. Maybe more concise

He could be leveraging [std/sugar](https://nim-lang.org/docs/sugar.html) to make this look cleaner.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.