{"action":"created","issue":{"url":"https://api.github.com/repos/json4s/json4s-ast/issues/13","labels_url":"https://api.github.com/repos/json4s/json4s-ast/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/json4s/json4s-ast/issues/13/comments","events_url":"https://api.github.com/repos/json4s/json4s-ast/issues/13/events","html_url":"https://github.com/json4s/json4s-ast/issues/13","id":110383713,"number":13,"title":"`js.Array[JValue]` vs `Array[JValue]`","user":{"login":"OlivierBlanvillain","id":1085297,"avatar_url":"https://avatars.githubusercontent.com/u/1085297?v=3","gravatar_id":"","url":"https://api.github.com/users/OlivierBlanvillain","html_url":"https://github.com/OlivierBlanvillain","followers_url":"https://api.github.com/users/OlivierBlanvillain/followers","following_url":"https://api.github.com/users/OlivierBlanvillain/following{/other_user}","gists_url":"https://api.github.com/users/OlivierBlanvillain/gists{/gist_id}","starred_url":"https://api.github.com/users/OlivierBlanvillain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlivierBlanvillain/subscriptions","organizations_url":"https://api.github.com/users/OlivierBlanvillain/orgs","repos_url":"https://api.github.com/users/OlivierBlanvillain/repos","events_url":"https://api.github.com/users/OlivierBlanvillain/events{/privacy}","received_events_url":"https://api.github.com/users/OlivierBlanvillain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-08T06:46:04Z","updated_at":"2015-10-27T00:18:31Z","closed_at":null,"body":"The difference on the type signature on `case class JArray(value: js.Array[JValue] = js.Array())` and  `case class JArray(value: Array[JValue] = Array.empty` prevents from writing generic code on `org.json4s.ast.fast`.\r\n\r\nMy question is the following: how much do we lose if we cross compile [jvm/fast/JValue.scala](https://github.com/json4s/json4s-ast/blob/master/jvm/src/main/scala/org/json4s/ast/fast/JValue.scala)?"},"comment":{"url":"https://api.github.com/repos/json4s/json4s-ast/issues/comments/151321390","html_url":"https://github.com/json4s/json4s-ast/issues/13#issuecomment-151321390","issue_url":"https://api.github.com/repos/json4s/json4s-ast/issues/13","id":151321390,"user":{"login":"mdedetrich","id":2337269,"avatar_url":"https://avatars.githubusercontent.com/u/2337269?v=3","gravatar_id":"","url":"https://api.github.com/users/mdedetrich","html_url":"https://github.com/mdedetrich","followers_url":"https://api.github.com/users/mdedetrich/followers","following_url":"https://api.github.com/users/mdedetrich/following{/other_user}","gists_url":"https://api.github.com/users/mdedetrich/gists{/gist_id}","starred_url":"https://api.github.com/users/mdedetrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdedetrich/subscriptions","organizations_url":"https://api.github.com/users/mdedetrich/orgs","repos_url":"https://api.github.com/users/mdedetrich/repos","events_url":"https://api.github.com/users/mdedetrich/events{/privacy}","received_events_url":"https://api.github.com/users/mdedetrich/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T00:18:31Z","updated_at":"2015-10-27T00:18:31Z","body":"Note that it is still possible to use `Array` and `js.Array` in your library, it just means you have to set up a different build process to make seperate binaries for both `Javascript`/`JVM` (note that you have to do this anyways).\r\n\r\nThere might be a nicer way to fix this, like using some sought of union type?\r\n\r\nI have been doing some research into a benchmarking facility for Scala.js, but I am not getting anything promising"}}