Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue collections #814

Open
1 of 4 tasks
ringabout opened this issue Nov 8, 2021 · 0 comments
Open
1 of 4 tasks

issue collections #814

ringabout opened this issue Nov 8, 2021 · 0 comments

Comments

@ringabout
Copy link
Collaborator

ringabout commented Nov 8, 2021

issues from nimskull

nim-works/nimskull#41

JS backend

The programs below doesn't work with JS backend

  • enum corner case in JS backend
type
  c_git_diff_option_t* = enum
    c_GIT_DIFF_NORMAL                          = 0 shl 0
    c_GIT_DIFF_IGNORE_BLANK_LINES              = 1 shl 31

Ref nim-works/nimskull#10

int is 32 bit for JS VM/backend

  • construction with side effects expression in JS backend
block multi_key:
  var used = 0
  let curly = {
    "key1", "key2": (inc used; used),
    "key3": (inc used; used)
  }

  doAssert used == 3, "Expression is evaluated for each key"
  doAssert curly == [
    ("key1", 1),
    ("key2", 2),
    ("key3", 3)
  ]

accept invalid

  • Nim compiler ignore leading spaces. In contrast, import os causes indentation error in Python.
   import os
block:
  echo 123

Documentation

Json

@ringabout ringabout changed the title issues collections issue collections Nov 8, 2021
@ringabout ringabout added the meta label Nov 8, 2021
@ringabout ringabout pinned this issue Nov 11, 2021
@ringabout ringabout unpinned this issue Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant