> Ideally, we'd like to have one codebase
> support both versions, but unless the changes are very minimal, this is
> unlikely.

The most common issue with the code I've written that I ported to work
with 1.9 was stuff like:

"asdf"[0] == 97

Change that to either:

"asdf"[0..0] == "a"

Or:

"asdf"[0] == 97 || "asdf"[0] == "a"

Similar tricks exist for pretty much all of the incompatibilities.
Converting over is usually a matter of running tests, and adding in
workarounds for the places that break.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to