Ticket #19 (closed defect: fixed)

Opened 5 months ago

Last modified 4 months ago

consider renaming var tag as xhtml 1.1 already has one

Reported by: marius Assigned to: somebody
Priority: trivial Component: component1
Keywords: Cc:

Change History

07/23/08 12:47:49 changed by louis.dejardin

Ah. That one looks really nice as markup too.

One option is to use a name like <local>, <v>, etc.

Another would be to make the code generator aware of variable scope, and merge the functionality of <var> into <set> and remove the element altogether. It could declare the variable if it's not in scope, and assign a value if it is.

That might be nice functionality to have in any case... On the other hand it would look less like csharp and more like vb. Not that there's anything wrong with that.

07/24/08 17:50:15 changed by marius

To avoid name collision <def> could be used (or namespaces could be introduced).

<local> looks nice as well.

07/26/08 05:02:54 changed by louis.dejardin

I think I'd prefer <def> to <local>... Less typing.

Still a shame though... <var i="5"/> to represent var i=5; seems so intuitive.

07/30/08 02:08:58 changed by louis.dejardin

  • status changed from new to closed.
  • resolution set to fixed.

The <def> and <var> elements can now be used interchangeably.

Support for <var> will probably be removed at some point. Having both available allows for a smooth transition.