[Bug] "element ElementVariable" and ":ElementVariable" differ

This issue has been tracked since 2022-07-27.

The following code

<div _='
  init
    set element ElementVariable to `element variable w/o :`
    set :ElementVariable to `element variable w/ :`

    if (element ElementVariable == :ElementVariable)
      put `"element ElementVariable" is equivalent to ":ElementVariable"` into #ElementOutput
    else
      put `"element ElementVariable" differs from ":ElementVariable"` into #ElementOutput
    end
  end
'></div>
<div id="ElementOutput"></div>

shows that element ElementVariable and :ElementVariable refer to different variables

A live example can be found here

dz4k wrote this answer on 2022-08-18

The sigil is part of the name. It seems this was never documented as clearly as it should have

rozek wrote this answer on 2022-08-18

Indeed, that's very important - and not really intuitive (not for me, at least)

More Details About Repo
Owner Name bigskysoftware
Repo Name _hyperscript
Full Name bigskysoftware/_hyperscript
Language JavaScript
Created Date 2020-05-27
Updated Date 2022-11-25
Star Count 1265
Watcher Count 18
Fork Count 75
Issue Count 86

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date