Skip to content

List Comprehensions => collect -- fixes break since Nim 1.2#58

Open
shirleyquirk wants to merge 15 commits into
kitsunyan:masterfrom
shirleyquirk:collect
Open

List Comprehensions => collect -- fixes break since Nim 1.2#58
shirleyquirk wants to merge 15 commits into
kitsunyan:masterfrom
shirleyquirk:collect

Conversation

@shirleyquirk

Copy link
Copy Markdown

Built on zqqw's work, refactored lc's to use the new collect macro
also removed other deprecation warnings (size_t, []=, dirExists, Exceptions)

Currently all the lc's are still in the code, wrapped in when NimVersion statements which is super messy but makes it easy to search through for all the changes
there are still a couple list comprehensions that don't work on 1.2.6, but are in latest devel, so that's also wrapped in a NimVersion block.

shirleyquirk and others added 2 commits August 5, 2020 00:53
reverting this merge, it was not what i wanted to do
i'm not great at git but i'm getting better
This reverts commit 731f8d7, reversing
changes made to 29e1241.
@shirleyquirk

Copy link
Copy Markdown
Author

I did a neater but more aggressive version of this commit into pakku-git, basically this but without the when NimVersion backwards 1.0 compatibility, and removed all dependency on lc cuz while Nim 1.0.8 is a thing, it's not a thing on Arch. So I can rebase on that, but that would require changing the PKGBUILD to depend on >= Nim 1.2

I'm not sure how to pr to the aur, I'll look into that too if that makes it easier

@shirleyquirk shirleyquirk changed the title List Comprehensions => collect List Comprehensions => collect -- fixes break since Nim 1.2 Aug 12, 2020
@PMunch

PMunch commented Sep 11, 2020

Copy link
Copy Markdown

I'm also facing this issue when I tried to install pakku on a new Arch box today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants