2 ms·
> As soon as I start using any of those "add-on" languages, I cannot refer to the line numbers [...] I can't say I disagree, but I don't think this is a seriou
by callahad 15y ago
> As soon as I start using any of those "add-on" languages, I cannot refer to the line numbers [...]
I can't say I disagree, but I don't think this is a serious impediment. Though Sass and CoffeeScript have recently pushed this sort of referential opacity into CSS and JavaScript, it's been an "issue" in HTML markup for decades: As soon as you introduce any kind of templating or conditional logic, you're handing the browser generated content that doesn't map directly to line numbers of files on disk.
In that vein, how is Haml different from ERB or Jinja2? The latter may superficially resemble HTML, but they aren't HTML. An even stronger parallel could be drawn from Less or Sass's scss syntax.